PdaUtils class abstract

PDA工具类

Constructors

PdaUtils.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

closeScanner() → void
关闭扫码器
errorSoundDudu() → void
嘟嘟错误提示音
errorSoundHumanVoice({bool playErrorSoundDudu = true}) → void
扫码失败的人声 考虑到扫码频率快 如果使用单例audioplayer则必须等待上一次音频播放完成才能播放下一个 导致音频播放节奏跟不上扫码速度 不太符合实际场景 故每次播放都新建一个audioplayer
getInitLogList() List<InitLogModel>
获取初始化日志
getOnTagList() List<String>
获取订阅的tag列表
getPDAModel() Future<String>
获取PDA设备型号
getPlatformVersion() Future<String>
获取安卓系统版本
init() Future<void>
初始化PDA扫码枪
initByCustom(String action, String label, {PdaDataType dataType = PdaDataType.STRING}) Future<void>
自定义初始化扫码枪 action: 广播行为 label: 获取数据的标签
isThisPDASupported() Future<bool>
查询该PDA是否支持扫码
返回系统桌面
off(String tag) → void
根据tag取消扫码订阅
offAll() → void
取消全部扫码订阅
on(String tag, Callback emitterCallback) → void
订阅扫码事件
successSoundHumanVoice() → void
扫码成功的人声 考虑到扫码频率快 如果使用单例audioplayer则必须等待上一次音频播放完成才能播放下一个 导致音频播放节奏跟不上扫码速度 不太符合实际场景 故每次播放都新建一个audioplayer

Constants

logTag → const String