Package com.medm.devicekit
Class BluetoothState
java.lang.Object
com.medm.devicekit.BluetoothState
BluetoothState allows you to listen the current bluetooth state
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(BluetoothState.Listener listener) getValue()
boolean
hasPermissionsToTurnOnBluetooth
(android.content.Context context) void
Wait until the first turn on event happens and unsubscribe the listener.void
removeListener
(BluetoothState.Listener listener)
-
Method Details
-
hasPermissionsToTurnOnBluetooth
public boolean hasPermissionsToTurnOnBluetooth(android.content.Context context) -
getValue
-
onBluetoothTurnedOn
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. -
addListener
-
removeListener
-