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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic enum - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(BluetoothState.Listener listener) getValue()booleanhasPermissionsToTurnOnBluetooth(android.content.Context context) voidWait until the first turn on event happens and unsubscribe the listener.voidremoveListener(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
 
 -