bluetoothConnect constant
AndroidPermissionDef
const bluetoothConnect
android.permission.BLUETOOTH_CONNECT
Required to connect to paired Bluetooth devices. Runtime permission: true Since SDK: 31 Group: bluetooth_connect Associated service: bluetooth Legacy mapping: BLUETOOTH / BLUETOOTH_ADMIN on pre-Android 12
Implementation
static const bluetoothConnect = AndroidPermissionDef(
'android.permission.BLUETOOTH_CONNECT',
sinceSDK: 31,
runtime: true,
group: 'bluetooth_connect',
service: AssociatedService.bluetooth,
keywords: {'connect', 'device'},
legacyKeys: {
'android.permission.BLUETOOTH': 30,
'android.permission.BLUETOOTH_ADMIN': 30,
},
docNotes: {
'Required to connect to paired Bluetooth devices',
'On Pre-Android 12 devices, this permission is mapped to BLUETOOTH and BLUETOOTH_ADMIN',
'May also require location permission depending on Android version',
},
);