Class BluetoothState


  • public class BluetoothState
    extends java.lang.Object
    BluetoothState allows you to listen the current bluetooth state
    • Method Detail

      • hasPermissionsToTurnOnBluetooth

        public boolean hasPermissionsToTurnOnBluetooth​(android.content.Context context)
      • onBluetoothTurnedOn

        public void onBluetoothTurnedOn​(BluetoothState.TurnOnListener listener)
        Wait until the first turn on event happens and unsubscribe the listener. Convenience method when you want to use lambda and not care about unregistering the listener.