FlutterDataWedge class

Constructors

FlutterDataWedge()
Create a new instance of FlutterDataWedge

Properties

hashCode int
The hash code for this object.
no setterinherited
onScannerEvent Stream<ActionResult>
Subscribe to a stream of EventNames
no setter
onScannerStatus Stream<ScannerStatus>
Subscribe to a stream of ScannerStatuss
no setter
onScanResult Stream<ScanResult>
Subscribe to a stream of ScanResults
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activateScanner(bool activate, {String? commandIdentifier}) Future<Result<void, FlutterDatawedgeException>>
Enable or Disable the scanner temporarily Way quicker then enableScanner but can only be called when ScannerStatus in SCANNING or WAITING state Use onScannerStatus to listen to the current state see also: enableScanner Zebra API Doc: https://zebra-techdocs-archive.netlify.app/datawedge/13-0/guide/api/scannerinputplugin/
createDefaultProfile({required String profileName, String? commandIdentifier}) Future<void>
Create and configure a default Datawedge profile with the given name Returns when the Command is executed NOT when DataWedge is ready to be operated again For that use onScannerEvent to listen for the Result of the Command
enableScanner(bool enable, {String? commandIdentifier}) Future<Result<void, FlutterDatawedgeException>>
Enable or Disable the scanner temporarily Can be called anytime, but slower than activateScanner see also: activateScanner Zebra API Doc: https://zebra-techdocs-archive.netlify.app/datawedge/13-0/guide/api/scannerinputplugin/
initialize({String? commandIdentifier}) Future<void>
Initialize the plugin This will enable onScannerStatus stream
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestActiveProfile({String? commandIdentifier}) Future<Result<void, FlutterDatawedgeException>>
Gets the name of the Profile currently in use by DataWedge. Answers using the onScannerEvent stream waitForActiveProfile can be used to wait for the answer and returns a String https://zebra-techdocs-archive.netlify.app/datawedge/13-0/guide/api/getactiveprofile/
requestProfiles({String? commandIdentifier}) Future<Result<void, FlutterDatawedgeException>>
Request the list of DataWedge Profiles on the device. Answers using the onScannerEvent stream waitForProfiles can be used to wait for the answer and returns a List<String> https://zebra-techdocs-archive.netlify.app/datawedge/13-0/guide/api/getprofileslist/
scannerControl(bool activate, {String? commandIdentifier}) Future<Result<void, FlutterDatawedgeException>>
Manually trigger scanning or stop scanning activate: true to trigger scanner, false to stop Zebra API Doc: https://zebra-techdocs-archive.netlify.app/datawedge/13-0/guide/api/softscantrigger/
toString() String
A string representation of this object.
inherited
waitForActiveProfile() Future<String>
This function for the result of the requestActiveProfile function and return it as a String requestActiveProfile has to be called before calling this function
waitForProfiles() Future<List<String>>
This function for the result of the requestProfiles function and return it as a List<String> requestProfiles has to be called before calling this function

Operators

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