ZebraDataWedgePlatform class abstract

Platform interface for the Zebra DataWedge plugin.

This abstract class defines the contract that all platform implementations must follow. The default implementation uses method channels for Android.

To implement a custom platform (e.g., for testing or a new platform), extend this class and set ZebraDataWedgePlatform.instance to your implementation before using ZebraDataWedge.

Inheritance
  • Object
  • PlatformInterface
  • ZebraDataWedgePlatform
Implementers

Constructors

ZebraDataWedgePlatform()
Creates a new platform interface instance.

Properties

events Stream<Map<String, dynamic>>
A stream of raw events from the DataWedge service.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configureProfile(String profileName) Future<void>
Creates or updates a DataWedge profile.
disableScanner() Future<void>
Disables the scanner.
enableScanner() Future<void>
Enables the scanner.
enumerateScanners() Future<void>
Enumerates all available scanners.
getActiveProfile() Future<void>
Retrieves the active profile name.
getProfilesList() Future<void>
Retrieves the list of all profiles.
getVersionInfo() Future<void>
Retrieves the DataWedge version info.
isDataWedgeAvailable() Future<bool>
Checks if DataWedge is available on the device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerForNotification(String notificationType) Future<void>
Registers for notifications of the specified type.
sendCommand({required String command, dynamic value, String? commandTag, bool requestResult = true}) Future<void>
Sends a command to DataWedge.
sendCommandBundle({required String command, required Map<String, dynamic> value, String? commandTag, bool requestResult = true}) Future<void>
Sends a command with a Map value to DataWedge.
sendIntent({required Map<String, dynamic> extras, String? action, String? targetPackage, String? commandTag, bool requestResult = true, bool orderedBroadcast = false, bool includeApplicationPackage = false}) Future<void>
Sends an intent to DataWedge or another package.
startSoftScan() Future<void>
Starts a software scan trigger.
switchToProfile(String profileName) Future<void>
Switches to the specified profile.
toString() String
A string representation of this object.
inherited
unregisterForNotification(String notificationType) Future<void>
Unregisters from notifications of the specified type.

Operators

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

Static Properties

instance ZebraDataWedgePlatform
The current platform implementation instance.
getter/setter pair