removeBleDevice method
Removes a BLE device.
On iOS, sends device.guid directly.
On Android, first calls getDeviceUniqueIdentifier to obtain the UUID
from the BLE device manager, then sends that UUID to the root client.
Implementation
Future<int> removeBleDevice({required CaptureHelperDevice device}) async {
if (Platform.isAndroid) {
final dynamic uuid = await getDeviceUniqueIdentifier(guid: device.guid);
return _set(
CapturePropertyIds.removeDevice,
CapturePropertyTypes.string,
uuid as String,
);
}
return _set(
CapturePropertyIds.removeDevice,
CapturePropertyTypes.string,
device.guid,
);
}