addBluetoothDevice method

Future<int> addBluetoothDevice({
  1. required int mode,
})

Starts a Bluetooth device discovery scan for the given mode.

Uses the ROOT capture client (_set), NOT the BLE device manager. This is the key pitfall: addDevice targets the root client.

Implementation

Future<int> addBluetoothDevice({required int mode}) {
  return _set(
    CapturePropertyIds.addDevice,
    CapturePropertyTypes.byte,
    mode,
  );
}