ContinuousScanSession class

Manages keep-alive, cooldown, and lifecycle-aware pause/resume for continuous scanning on iMIN Lark devices.

Constructors

ContinuousScanSession(FlutterIminLarkScanner _scanner, {ContinuousScanConfig config = const ContinuousScanConfig()})

Properties

hashCode int
The hash code for this object.
no setterinherited
isActive bool
no setter
isStarting bool
True while start or resume is waiting for the app or hardware.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scans Stream<String>
Barcode values emitted after duplicate suppression is applied.
no setter
stateChanges Stream<void>
Fires when isActive or isStarting changes.
no setter

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseForLifecycle() Future<void>
Temporarily pauses scanning when the app moves to the background.
resume() Future<void>
Resumes scanning after a user-initiated stop.
resumeFromLifecycle() Future<void>
Resumes scanning after pauseForLifecycle when the app returns.
start() Future<void>
Prepares the native scanner, subscribes to barcode events, and starts continuous scanning once the app has reached the resumed lifecycle state.
stop() Future<void>
User-initiated stop. Scanning stays off until resume is called.
toString() String
A string representation of this object.
inherited

Operators

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