startBluetoothService method

void startBluetoothService(
  1. BluetoothServiceCompletion completion
)

Used to connect to the ble device.

Android only.

Implementation

void startBluetoothService(BluetoothServiceCompletion completion) {
  if (!Platform.isAndroid)
    throw PlatformException(
      code: "android-only",
      message: "startBluetoothService is accessible only on Android",
    );
  _setBluetoothServiceCompletion(completion);
  _bridge.invokeMethod("startBluetoothService", []);
}