BluetoothManager class

A BluetoothManager.

Properties

hashCode int
The hash code for this object.
read-only, inherited
isConnected Future<bool>
read-only
isScanning Stream<bool>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scanResults Stream<List<BluetoothDevice>>
read-only
state Stream<int>
Gets the current state of the Bluetooth module
read-only

Methods

connect(BluetoothDevice device) Future
destroy() Future
disconnect() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
read-only

Constants

BLE_OFF → const int
10
BLE_ON → const int
11
CONNECTED → const int
1
DISCONNECTED → const int
0
NAMESPACE → const String
'flutter_bluetooth_basic'