DeviceManager class

Constructors

DeviceManager()

Properties

connectedDevice OmiDevice?
no setter
connectionState DeviceConnectionState
no setter
connectionStateStream Stream<DeviceConnectionState>
no setter
devicesStream Stream<List<OmiDevice>>
no setter
discoveredDevices List<OmiDevice>
no setter
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
no setter
isInitialized bool
no setter
isScanning bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connectToDevice(String deviceId) Future<void>
disconnect() Future<void>
dispose() Future<void>
getAudioCodec() Future<AudioCodec>
getAudioStream({required dynamic onAudioReceived(List<int>)}) Future<StreamSubscription?>
getBatteryLevel() Future<int>
initialize() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startScan({Duration? timeout}) Future<void>
stopScan() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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