MethodChannelFlutterZebraScale class

An implementation of FlutterZebraScalePlatform that uses method channels.

Inheritance

Properties

eventChannel EventChannel
The event channel used to receive events from the native platform.
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

Methods

connect(int scannerId) Future<bool>
Connect to a scanner by ID
override
disableScale(int scannerId) Future<bool>
Disable scale on a scanner
override
disconnect(int scannerId) Future<bool>
Disconnect from a scanner by ID
override
enableBluetoothScannerDiscovery(bool enable) Future<bool>
Enable/disable Bluetooth scanner discovery
override
enableScale(int scannerId) Future<bool>
Enable scale on a scanner
override
enableScannersDetection(bool enable) Future<bool>
Enable/disable scanner detection
override
getActiveScanners() Future<Map<String, dynamic>>
Get list of active (connected) scanners
override
getAvailableScanners() Future<Map<String, dynamic>>
Get list of available scanners
override
getEventStream() Stream<Map<String, dynamic>>
Get stream of events from the native platform
override
getPlatformVersion() Future<String?>
override
initialize() Future<bool>
Initialize the Zebra Scanner SDK
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readWeight(int scannerId) Future<Map<String, dynamic>?>
Read weight from scale
override
resetScale(int scannerId) Future<bool>
Reset the scale
override
startLiveWeight(int scannerId) Future<bool>
Start live weight reading (continuous updates)
override
stopLiveWeight() Future<bool>
Stop live weight reading
override
toString() String
A string representation of this object.
inherited
updateScannersList() Future<Map<String, dynamic>>
Update/refresh scanners list
override
zeroScale(int scannerId) Future<bool>
Zero the scale
override

Operators

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