bondedDevices property

Future<List<BluetoothDevice>> get bondedDevices

Retrieve a list of bonded devices (Android only)

Implementation

static Future<List<BluetoothDevice>> get bondedDevices async {
  var r = await _invokePlatform(() => FlutterBluePlusPlatform.instance.getBondedDevices(BmBondedDevicesRequest()));
  for (BmBluetoothDevice device in r.devices) {
    if (device.platformName != null) {
      _platformNames[device.remoteId] = device.platformName!;
    }
  }
  return r.devices.map((d) => BluetoothDevice.fromId(d.remoteId.str)).toList();
}