Nf5503FlutterPlatform class abstract
NF5503 插件的平台接口,供各平台实现 MethodChannel 或其它通信方式。
- Inheritance
-
- Object
- PlatformInterface
- Nf5503FlutterPlatform
- Implementers
Constructors
- Nf5503FlutterPlatform()
- 创建平台接口实例。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> - 获取当前 Android 平台版本字符串。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printerAddBarcode(
{required String content, required int height, required Nf5503BarcodeType type, Nf5503PrintAlign align = Nf5503PrintAlign.center, Nf5503HriPosition hriPosition = Nf5503HriPosition.below}) → Future< void> - 添加一维条码到打印队列。
-
printerAddBlankLines(
int lines) → Future< void> - 添加指定数量的空行到打印队列。
-
printerAddImageBytes(
Uint8List imageBytes, {Nf5503PrintAlign align = Nf5503PrintAlign.center}) → Future< void> - 添加内存图片到打印队列。
-
printerAddImagePath(
String imagePath, {Nf5503PrintAlign align = Nf5503PrintAlign.center}) → Future< void> - 添加本地文件图片到打印队列。
-
printerAddQrCode(
String content, {Nf5503PrintAlign align = Nf5503PrintAlign.center, int size = 384}) → Future< void> - 添加二维码到打印队列。
-
printerAddText(
String content, {Nf5503PrintAlign align = Nf5503PrintAlign.left, Nf5503PrintFontSize fontSize = Nf5503PrintFontSize.middle, bool isBold = false, bool isUnderline = false}) → Future< void> - 添加文本到打印队列。
-
printerClose(
) → Future< bool> - 关闭打印机。
-
printerEvents(
) → Stream< Nf5503PrintEvent> - 监听打印机版本和打印状态事件。
-
printerGetConcentration(
) → Future< int> - 获取当前打印浓度业务值,原生 1 到 10 档会映射回 4 到 40。
-
printerGetFeedPaperSpace(
) → Future< int> - 获取走纸间距。
-
printerGetFontSize(
) → Future< Nf5503PrintFontSize> - 获取当前打印字体大小。
-
printerGetFontType(
) → Future< String> - 获取当前字体类型。
-
printerGetLineSpacing(
) → Future< double> - 获取当前行间距设置。
-
printerGetState(
Nf5503PrinterStateType stateType) → Future< int> - 查询指定类型的打印机状态。
-
printerGetSupportPrint(
) → Future< int> - 查询当前设备是否支持打印模块。
-
printerGetUnwindPaperLength(
) → Future< int> - 获取标签模式回退纸长度。
-
printerGetVersion(
) → Future< String> - 获取打印机固件或 SDK 版本号。
-
printerGoToNextMark(
{int? distance}) → Future< void> - 标签模式下走纸到下一张黑标。
-
printerIsBlackMark(
) → Future< bool> - 查询是否启用黑标/标签模式。
-
printerIsBold(
) → Future< bool> - 查询默认文本是否加粗。
-
printerIsReverse(
) → Future< bool> - 查询是否反白打印。
-
printerIsUnderline(
) → Future< bool> - 查询默认文本是否带下划线。
-
printerOpen(
) → Future< bool> - 打开打印机。
-
printerReset(
) → Future< int> - 重置打印机。
-
printerSetBlackMark(
bool enabled) → Future< void> - 设置是否启用黑标/标签模式。
-
printerSetBold(
bool enabled) → Future< void> - 设置默认文本是否加粗。
-
printerSetConcentration(
int density) → Future< void> - 设置打印浓度,传入 1 到 40 的业务值并映射到原生 1 到 10 档。
-
printerSetFeedPaperSpace(
int space) → Future< void> - 设置走纸间距。
-
printerSetFontSize(
Nf5503PrintFontSize fontSize) → Future< void> - 设置打印字体大小。
-
printerSetFontType(
String fontType) → Future< void> - 设置字体类型。
-
printerSetLineSpacing(
double spacing) → Future< void> - 设置行间距。
-
printerSetReverse(
bool enabled) → Future< void> - 设置是否反白打印。
-
printerSetThreshold(
int threshold) → Future< int> - 设置黑标检测阈值。
-
printerSetUnderline(
bool enabled) → Future< void> - 设置默认文本是否带下划线。
-
printerSetUnwindPaperLength(
int length) → Future< void> - 设置标签模式回退纸长度。
-
printerStart(
) → Future< void> - 开始打印当前队列中的内容。
-
scannerClose(
) → Future< bool> - 关闭扫码头。
-
scannerConnectDecoder(
) → Future< void> - 连接底层解码器。
-
scannerDisconnectDecoder(
) → Future< void> - 断开底层解码器。
-
scannerEnableAll1dSymbologies(
bool enabled) → Future< void> - 一次性启用或禁用全部一维码制。
-
scannerEnableAll2dSymbologies(
bool enabled) → Future< void> - 一次性启用或禁用全部二维码制。
-
scannerEnableAllSymbologies(
bool enabled) → Future< void> - 一次性启用或禁用全部码制。
-
scannerEnableSymbology(
{required int symbologyId, required bool enabled}) → Future< void> - 启用或禁用指定码制。
-
scannerGetBroadcastAction(
) → Future< String> - 获取扫码结果广播 Action。
-
scannerGetBroadcastKey(
) → Future< String> - 获取扫码结果广播中承载条码文本的 Key。
-
scannerGetContinueScan(
) → Future< bool> - 获取连续扫码开关状态。
-
scannerGetDecodeMode(
) → Future< Nf5503ScanDecodeMode> - 获取扫码数据编码模式。
-
scannerGetDecoderStatus(
) → Future< bool> - 查询底层解码器状态。
-
scannerGetDecodeTimeout(
) → Future< int> - 获取单次解码超时时间,单位毫秒。
-
scannerGetDisableSameBarcode(
) → Future< bool> - 获取禁止重复输出同一条码的开关状态。
-
scannerGetEndMark(
) → Future< Nf5503ScanEndMark> - 获取扫码结果末尾追加字符。
-
scannerGetFilter(
) → Future< String> - 获取扫码过滤规则。
-
scannerGetHandleKey(
) → Future< bool> - 获取实体扫码键接管状态。
-
scannerGetIntervalTime(
) → Future< int> - 获取连续扫码间隔时间,单位毫秒。
-
scannerGetLiftToStop(
) → Future< bool> - 获取松开扫码键停止扫码的开关状态。
-
scannerGetMultiDecode(
) → Future< bool> - 获取多码识读开关状态。
-
scannerGetMultiReadNumber(
) → Future< int> - 获取多码识读的最大读取数量。
-
scannerGetOutputMode(
) → Future< Nf5503ScanOutputMode> - 获取扫码结果输出方式。
-
scannerGetPlaySound(
) → Future< bool> - 获取扫码成功提示音开关状态。
-
scannerGetPrefix(
) → Future< String> - 获取扫码结果前缀。
-
scannerGetScannerType(
) → Future< Nf5503ScannerType> - 获取当前扫描头硬件类型。
-
scannerGetSuffix(
) → Future< String> - 获取扫码结果后缀。
-
scannerGetSymbologyList(
) → Future< List< Map< >String, Object?> > - 获取设备支持的码制信息列表,字段由原生 SDK 对象反射得出。
-
scannerGetSymbologyValues(
List< int> paramIds) → Future<List< int> > - 批量读取码制参数值。
-
scannerGetVibrate(
) → Future< bool> - 获取扫码成功震动开关状态。
-
scannerInitSymbologySettings(
) → Future< void> - 初始化所有码制参数为 SDK 默认值。
-
scannerIsConflicted(
) → Future< bool> - 查询当前扫描头是否与其它扫描服务冲突。
-
scannerIsDecoderConnected(
) → Future< bool> - 查询底层解码器是否已连接。
-
scannerIsOpen(
) → Future< bool> - 查询扫码头是否已打开。
-
scannerIsSymbologyEnabled(
int symbologyId) → Future< bool> - 查询指定码制是否已启用。
-
scannerIsSymbologySupported(
int symbologyId) → Future< bool> - 查询指定码制是否受当前扫描头支持。
-
scannerOpen(
) → Future< bool> - 打开扫码头。
-
scannerReset(
) → Future< void> - 重置扫码 SDK 配置。
-
scannerResults(
{String? action, String? key}) → Stream< Nf5503ScanResult> - 监听扫码广播结果,可传入自定义广播 action 和数据 key。
-
scannerSetBroadcastAction(
String action) → Future< void> - 设置扫码结果广播 Action。
-
scannerSetBroadcastKey(
String key) → Future< void> - 设置扫码结果广播中承载条码文本的 Key。
-
scannerSetContinueScan(
bool enabled) → Future< void> - 设置是否连续扫码。
-
scannerSetDecodeMode(
Nf5503ScanDecodeMode mode) → Future< void> - 设置扫码数据编码模式。
-
scannerSetDecodeTimeout(
int milliseconds) → Future< void> - 设置单次解码超时时间,单位毫秒。
-
scannerSetDisableSameBarcode(
bool disabled) → Future< void> - 设置是否禁止重复输出同一条码。
-
scannerSetEndMark(
Nf5503ScanEndMark mark) → Future< void> - 设置扫码结果末尾追加字符。
-
scannerSetFilter(
String filter) → Future< void> - 设置扫码过滤规则。
-
scannerSetHandleKey(
bool enabled) → Future< void> - 设置是否由 SDK 接管实体扫码键。
-
scannerSetIntervalTime(
int milliseconds) → Future< bool> - 设置连续扫码间隔时间,单位毫秒。
-
scannerSetLiftToStop(
bool enabled) → Future< void> - 设置松开扫码键时是否停止扫码。
-
scannerSetMultiDecode(
bool enabled) → Future< void> - 设置是否启用多码识读。
-
scannerSetMultiReadNumber(
int number) → Future< void> - 设置多码识读时一次最多读取的条码数量。
-
scannerSetOutputMode(
Nf5503ScanOutputMode mode) → Future< void> - 设置扫码结果输出方式。
-
scannerSetPlaySound(
bool enabled) → Future< void> - 设置扫码成功后是否播放提示音。
-
scannerSetPrefix(
String prefix) → Future< void> - 设置扫码结果前缀。
-
scannerSetSuffix(
String suffix) → Future< void> - 设置扫码结果后缀。
-
scannerSetSymbologyValues(
Map< int, int> values) → Future<void> - 批量设置码制参数。
-
scannerSetVibrate(
bool enabled) → Future< void> - 设置扫码成功后是否震动。
-
scannerStartDecode(
) → Future< bool> - 触发一次扫码解码。
-
scannerStopDecode(
) → Future< bool> - 停止当前扫码解码。
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ Nf5503FlutterPlatform
-
当前默认平台实现。
getter/setter pair