ReaderStatus class

Snapshot of the current SDK / reader state, returned by MobileReaderSdk.getStatus.

Constructors

ReaderStatus({required ReaderConnectionState connectionState, ReaderDevice? device, bool transactionInProgress = false, int? batteryPercent, ReaderVendor? vendor, String? driverId, ReaderProfile? profile, ReaderCapability? capabilities, ReconnectState? reconnectState, int? reconnectAttempt, bool? reconnectEnabled, String? lastReconnectErrorCode, RetryQueueStatus? retryQueueStatus})
const
ReaderStatus.fromJson(Map<String, dynamic> json)
factory

Properties

batteryPercent → int?
Convenience copy of device?.batteryPercent when known.
final
capabilities → ReaderCapability?
Active capability flags when a device is connected. Mirrors device?.capabilities; falls back to profile?.capabilities when the driver did not advertise per-device capabilities.
final
connectionState → ReaderConnectionState
Current connection lifecycle state.
final
device → ReaderDevice?
The connected (or connecting) device, when present.
final
driverId → String?
Active driver id when a device is connected. Mirrors device?.driverId.
final
hashCode → int
The hash code for this object.
no setteroverride
lastReconnectErrorCode → String?
Error code from the last failed reconnect attempt.
final
profile → ReaderProfile?
Active reader profile when a device is connected and matches a known profile. Mirrors device?.profile.
final
reconnectAttempt → int?
Current reconnect attempt number.
final
reconnectEnabled → bool?
Whether reconnect is enabled in config.
final
reconnectState → ReconnectState?
Current reconnect manager state, if active.
final
retryQueueStatus → RetryQueueStatus?
Retry queue operational snapshot, when available.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transactionInProgress → bool
true between startTransaction and a terminal result event.
final
vendor → ReaderVendor?
Active vendor when a device is connected. Mirrors device?.vendor; surfaced here so POS code can route on vendor without dereferencing the device.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override