startBluetoothService method

dynamic startBluetoothService(
  1. BluetoothServiceCompletion completion
)

Used to connect to the ble device.

Android only.

Implementation

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