bondedDevices property
Future<List<BluetoothDevice> >
get
bondedDevices
Retrieve a list of bonded devices (Android only)
Implementation
static Future<List<BluetoothDevice>> get bondedDevices async {
var result = await _invokeMethod('getBondedDevices');
var r = BmDevicesList.fromMap(result);
for (BmBluetoothDevice device in r.devices) {
if (device.platformName != null) {
_platformNames[device.remoteId] = device.platformName!;
}
}
return r.devices.map((d) => BluetoothDevice.fromProto(d)).toList();
}