FlutterBluePlugin class

Properties

a2dpConnectedDevices Future<List<BluetoothDevice>>
no setter
bondedDevices Future<List<BluetoothDevice>>
Retrieve a list of bonded devices
no setter
connectedDevices Future<List<BluetoothDevice>>
Retrieve a list of connected devices
no setter
hashCode int
The hash code for this object.
no setterinherited
isAvailable Future<bool>
Checks whether the device supports Bluetooth
no setter
isOn Future<bool>
Checks if Bluetooth functionality is turned on
no setter
isScanning Stream<bool>
no setter
logLevel LogLevel
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanResults Stream<List<ScanResult>>
Returns a stream that is a list of ScanResult results while a scan is in progress.
no setter
state Stream<BluetoothState>
Gets the current state of the Bluetooth module
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestEnableBluetooth() Future<void>
scan({ScanMode scanMode = ScanMode.lowLatency, List<Guid> withServices = const [], List<Guid> withDevices = const [], Duration? timeout, bool allowDuplicates = false}) Stream<ScanResult>
Starts a scan for Bluetooth Low Energy devices and returns a stream of the ScanResult results as they are received.
setLogLevel(LogLevel level) → void
The list of connected peripherals can include those that are connected by other apps and that will need to be connected locally using the device.connect() method before they can be used. Sets the log level of the FlutterBlue instance Messages equal or below the log level specified are stored/forwarded, messages above are dropped.
startScan({ScanMode scanMode = ScanMode.lowLatency, List<Guid> withServices = const [], List<Guid> withDevices = const [], Duration? timeout, bool allowDuplicates = false}) Future
Starts a scan and returns a future that will complete once the scan has finished.
stopScan() Future
Stops a scan for Bluetooth Low Energy devices
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FlutterBluePlugin
no setter