SplendidBleCentral class

SplendidBleCentral provides an interface to interact with Bluetooth functionalities from a Flutter app acting as a BLE central device.

Constructors

SplendidBleCentral()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkBluetoothAdapterStatus() Future<BluetoothStatus>
Asks the platform to check the current status of the Bluetooth adapter.
connect({required String deviceAddress}) Stream<BleConnectionState>
Asks the platform to connect to a Bluetooth device by its address.
disconnect(String deviceAddress) Future<void>
Asks the platform to disconnect from a Bluetooth device by its address.
discoverServices(String deviceAddress) Stream<List<BleService>>
Asks the platform to discover available services for a connected device by its address.
emitCurrentBluetoothStatus() Stream<BluetoothStatus>
Emits the current status of the Bluetooth adapter whenever it changes.
emitCurrentPermissionStatus() Stream<BluetoothPermissionStatus>
Emits the current Bluetooth permission status whenever it changes.
getConnectedDevices(List<String> serviceUUIDs) Future<List<ConnectedBleDevice>>
Returns a list of BLE device identifiers that are currently connected to the host device.
getCurrentConnectionState(String deviceAddress) Future<BleConnectionState>
Asks the platform to get the current connection state for a Bluetooth device by its address.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestBluetoothPermissions() Future<BluetoothPermissionStatus>
Asks the platform to request Bluetooth permissions from the user.
startScan({List<ScanFilter>? filters, ScanSettings? settings}) Stream<BleDevice>
Asks the platform to start scanning for Bluetooth devices.
stopScan() → void
Asks the platform to stop scanning for Bluetooth devices.
toString() String
A string representation of this object.
inherited

Operators

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