bluetoothBatteryInfo method

  1. @override
Future<String> bluetoothBatteryInfo()
override

get Battery Info from connected device

Implementation

@override
Future<String> bluetoothBatteryInfo() async {
  btCtr = Completer();
  methodChannel.invokeMethod("bluetooth.battery_info");
  return await btCtr?.future;
}