public enum BluetoothPermission

  1. Object
  2. Enum<BluetoothPermission>
  3. BluetoothPermission

ImplementsComparable<BluetoothPermission>

The runtime permissions the Bluetooth API may need, abstracted across platforms. Query with Bluetooth.hasPermission(BluetoothPermission) and request with Bluetooth.requestPermissions(BluetoothPermission...).

Mapping per platform:

  • Android 12+BLUETOOTH_SCAN / BLUETOOTH_CONNECT / BLUETOOTH_ADVERTISE runtime permissions respectively.
  • Android 6-11SCAN maps to ACCESS_FINE_LOCATION (required for BLE scan results); CONNECT and ADVERTISE need no runtime grant.
  • iOS – a single Bluetooth privacy authorization covers all three.

Enum constants

SCANDiscovering nearby devices (BLE scanning, classic discovery).
CONNECTConnecting to devices and using GATT / RFCOMM / L2CAP.
ADVERTISEAdvertising and operating a local GATT server.

Methods

public static BluetoothPermission[] values()
public static BluetoothPermission valueOf(String name)

Inherited methods

Enum constant details

SCAN

SCAN
Discovering nearby devices (BLE scanning, classic discovery).

CONNECT

CONNECT
Connecting to devices and using GATT / RFCOMM / L2CAP.

Method details

values

public static BluetoothPermission[] values()

valueOf

public static BluetoothPermission valueOf(String name)