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