startBluetoothService method
- BluetoothServiceCompletion completion
Used to connect to the ble device.
Android only.
Implementation
Future<void> startBluetoothService(
BluetoothServiceCompletion completion,
) async {
if (!Platform.isAndroid)
throw PlatformException(
code: "android-only",
message: "startBluetoothService is accessible only on Android",
);
_setBluetoothServiceCompletion(completion);
await _bridge.invokeMethod("startBluetoothService", []);
}