ScannerBridge class final
Low-level owner of the Android receiver and shared native input stream.
Constructors
- ScannerBridge({ScannerHostApi? host, EventChannel? scans})
- Creates a bridge with optional injected host and event channel for tests.
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
-
barcodes(
) → Stream< String> - Returns a shared broadcast stream of trimmed, nonblank native text.
-
inspectHost(
) → Future< ScannerHostInspectionView> - Inspects host flags without acquiring the receiver.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preferBroadcastOutput(
) → Future< bool> - Requests broadcast device output settings without restoring them on stop.
-
startListening(
) → Future< void> - Acquires native input for this owner through a serialized operation.
-
stopListening(
) → Future< void> - Releases this owner's native input, permitting cleanup retries on failure.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- scansChannelName → const String
- The native event channel carrying decoded scan payloads.