getBondedDevices method

  1. @override
Future<List<BluetoothDevice>> getBondedDevices()
override

实现 FlutterBluetoothPluginPlatform.getBondedDevices

Web 不公开系统配对列表;这里返回浏览器已授权给当前站点的设备。

Implementation

@override
Future<List<BluetoothDevice>> getBondedDevices() async {
  final devices = await _authorizedDevices();
  return devices.map(_deviceFromWeb).toList(growable: false);
}