FlutterBlueClassic class

Constructors

FlutterBlueClassic({bool usesFineLocation = false})

Properties

adapterState Stream<BluetoothAdapterState>
Returns an event stream for all adapter state changes
no setter
adapterStateNow Future<BluetoothAdapterState>
Returns the current adapter state
no setter
bondedDevices Future<List<BluetoothDevice>?>
Returns the list of bonded devices.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEnabled Future<bool>
Checks whether Bluetooth is enabled on the device
no setter
isScanning Stream<bool>
Returns an event stream about whether the device is currently scanning for Bluetooth devices
no setter
isScanningNow Future<bool>
Checks whether the device is currently scanning for bluetooth devices
no setter
isSupported Future<bool>
Checks whether the device supports Bluetooth
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanResults Stream<BluetoothDevice>
Returns an event stream for every bluetooth device found during scan
no setter
usesFineLocation bool
Indicates whether your app is using the fine location feature.
final

Methods

bondDevice(String address) Future<bool>
Tries to create a bond to the device with the given address.
connect(String address) Future<BluetoothConnection?>
Tries to create a connection to the device with the given address.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startScan() → void
This will attempt to start scanning for Bluetooth devices.
stopScan() → void
This will attempt to stop scanning for Bluetooth devices.
toString() String
A string representation of this object.
inherited
turnOn() → void
Requests to turns the bluetooth adapter on.

Operators

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