requestBluetoothPermissions method

  1. @override
Future<BluetoothPermissionStatus> requestBluetoothPermissions()
override

Requests Bluetooth permissions from the user.

This method communicates with the native platform code to request Bluetooth permissions. It returns one of the values from the BluetoothPermissionStatus enumeration.

  • BluetoothPermissionStatus.GRANTED: Permission is granted.
  • BluetoothPermissionStatus.DENIED: Permission is denied.

Returns a Future containing the BluetoothPermissionStatus representing whether permission was granted or not.

Implementation

@override
Future<BluetoothPermissionStatus> requestBluetoothPermissions() async {
  return BleCommonUtilities.requestBluetoothPermissions(channel);
}