getBluetoothAvailabilityState static method

Future<AvailabilityState> getBluetoothAvailabilityState()

Get Bluetooth availability state. To be notified of updates, set onAvailabilityChange listener.

Implementation

static Future<AvailabilityState> getBluetoothAvailabilityState() async {
  return await _bleCommandQueue.queueCommand(
    () => _platform.getBluetoothAvailabilityState(),
  );
}