BluetoothManager class

A BluetoothManager.

Properties

hashCode int
The hash code for this object.
no setterinherited
isConnected Future<bool>
no setter
isScanning Stream<bool>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanResults Stream<List<BluetoothDevice>>
no setter
state Stream<int?>
Gets the current state of the Bluetooth module
no setter

Methods

connect(BluetoothDevice device) Future
destroy() Future
disconnect() Future
getDefault() Future
getDefaultDevice() Stream<BluetoothDevice>
=> _channel.invokeMethod('getDefault');
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scan({Duration? timeout}) Stream<BluetoothDevice>
Starts a scan for Bluetooth Low Energy devices Timeout closes the stream after a specified Duration
startScan({Duration? timeout}) Future
stopScan() Future
Stops a scan for Bluetooth Low Energy devices
toString() String
A string representation of this object.
inherited
writeData(List<int> bytes) Future

Operators

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

Static Properties

instance BluetoothManager
no setter

Constants

CONNECTED → const int
DISCONNECTED → const int
NAMESPACE → const String