BleCommonUtilities class

This class provides utility methods for checking the status of the Bluetooth adapter and requesting Bluetooth permissions.

Constructors

BleCommonUtilities.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

checkBluetoothAdapterStatus(MethodChannel channel) Future<BluetoothStatus>
Checks the status of the Bluetooth adapter on the device.
emitCurrentBluetoothStatus(MethodChannel channel) Stream<BluetoothStatus>
Emits the current Bluetooth adapter status to the Dart side.
emitCurrentPermissionStatus(MethodChannel channel) Stream<BluetoothPermissionStatus>
Emits the current Bluetooth permission status to the Dart side.
requestBluetoothPermissions(MethodChannel channel) Future<BluetoothPermissionStatus>
Requests Bluetooth permissions from the user.