checkPermissions method
检查蓝牙相关权限状态,不触发系统授权弹窗。
无参数。Android 返回 bluetoothScan、bluetoothConnect、
bluetoothAdvertise、locationWhenInUse 等键;iOS/macOS 返回 bluetooth;Web
没有全局预授权,不支持时返回 notApplicable,已授权过设备时返回 granted,否则返回
notDetermined。Linux/Windows 返回 bluetooth,有可用适配器时为 granted,否则为
notApplicable。
Implementation
Future<Map<String, BluetoothPermissionStatus>> checkPermissions() {
throw UnimplementedError('checkPermissions() has not been implemented.');
}