bluetoothDeviceData method

  1. @override
Future<DeviceData> bluetoothDeviceData()
override

get connected bluetooth device data

Implementation

@override
Future<DeviceData> bluetoothDeviceData() async {
  btCtr = Completer();
  methodChannel.invokeMethod("bluetooth.device_data");
  return await btCtr?.future;
}