requestPermissions method
请求蓝牙相关权限。
无参数。Android 会请求运行时权限;iOS/macOS 会初始化 CoreBluetooth 以触发系统授权; Web 不能预先弹出全局授权,需要在用户手势中通过 startScan 打开设备选择器; Linux/Windows 不会弹出蓝牙授权,直接返回当前可用性映射结果;建议在扫描、连接、 广播前调用,并检查返回值。
Implementation
Future<Map<String, BluetoothPermissionStatus>> requestPermissions() {
throw UnimplementedError('requestPermissions() has not been implemented.');
}