bluetoothScan constant

AndroidPermissionDef const bluetoothScan

android.permission.BLUETOOTH_SCAN

Required to discover and scan for Bluetooth devices. Runtime permission: true Since SDK: 31 Group: bluetooth_scan Associated service: bluetooth Legacy mapping: BLUETOOTH_ADMIN on pre-Android 12

Implementation

static const bluetoothScan = AndroidPermissionDef(
  'android.permission.BLUETOOTH_SCAN',
  sinceSDK: 31,
  runtime: true,
  group: 'bluetooth_scan',
  service: AssociatedService.bluetooth,
  keywords: {'scan', 'discover', 'le'},
  legacyKeys: {'android.permission.BLUETOOTH_ADMIN': 30},
  docNotes: {
    'Required to discover and scan for Bluetooth devices',
    'On Pre-Android 12 devices, this permission is mapped to BLUETOOTH_ADMIN',
    'May also require location permission depending on Android version',
  },
);