MethodChannelMPhoneScan class

An implementation of MPhoneScanPlatform that uses method channels.

Inheritance

Constructors

MethodChannelMPhoneScan()

Properties

eventChannel EventChannel
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamSubscription StreamSubscription?
getter/setter pair

Methods

closeListenScanData() → void
closeScanner() Future<bool>
关闭扫描
override
isScannerOpen() Future<bool>
是否开启扫描
override
listenScanData(ValueChanged<Map<String, dynamic>> onData) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openScanner() Future<bool>
开启扫描
override
setPlaySound(bool value) Future<void>
设置扫描的声音
override
startDecode() Future<bool>
启动扫描,扫描头出光
override
stopDecode() Future<bool>
关闭扫描
override
toString() String
A string representation of this object.
inherited

Operators

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