-
- All Implemented Interfaces:
public class BluetoothStateChangeReceiver extends PointrBroadcastReceiver<BluetoothStateChangeReceiver.Listener>
Called upon events that relate to Bluetooth scanning eg. Bluetooth On / Off, Location Enabled / Disabled
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
BluetoothStateChangeReceiver.Listener
public @interface
BluetoothStateChangeReceiver.BluetoothState
Bluetooth state TypeDef Hence the TypeDef is hidden in BluetoothAdapter's AdapterState is hidden This typedef exposes visible Bluetooth states
-
Method Summary
Modifier and Type Method Description static synchronized BluetoothStateChangeReceiver
getInstance()
void
handleBroadcast(@NonNull() Context context, @NonNull() Intent intent)
-
Methods inherited from class com.pointrlabs.core.receiver.PointrBroadcastReceiver
addListener, onReceive, removeListener
-
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, onReceive, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getInstance
@NonNull() static synchronized BluetoothStateChangeReceiver getInstance()
-
handleBroadcast
void handleBroadcast(@NonNull() Context context, @NonNull() Intent intent)
-
-
-
-