Package com.pointrlabs.core.receiver
Class BluetoothStateChangeReceiver
-
- All Implemented Interfaces:
public class BluetoothStateChangeReceiver extends PointrBroadcastReceiver<T>
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
-
Constructor Summary
Constructors Constructor Description BluetoothStateChangeReceiver()
-
Method Summary
Modifier and Type Method Description static BluetoothStateChangeReceiver
getInstance()
void
handleBroadcast(@NonNull() Context context, @NonNull() Intent intent)
Called only when pointr is ready to operate for received broadcast -
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, getSentFromPackage, getSentFromUid, 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 BluetoothStateChangeReceiver getInstance()
-
handleBroadcast
void handleBroadcast(@NonNull() Context context, @NonNull() Intent intent)
Called only when pointr is ready to operate for received broadcast
- Parameters:
context
- The Context in which the receiver is running.intent
- The Intent being received.
-
-
-
-