public class BluetoothStateChangeReceiver
extends BroadcastReceiver
ProximityManager scanning state| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION
Convenience constant equal to
BluetoothAdapter#ACTION_STATE_CHANGED. |
| Constructor and Description |
|---|
BluetoothStateChangeReceiver(OnBluetoothStateChangeListener stateChangeListener)
Instantiates a new Bluetooth State Change Receiver.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onReceive(Context context,
Intent intent) |
public static final java.lang.String ACTION
BluetoothAdapter#ACTION_STATE_CHANGED.
If you register BluetoothStateChangeReceiver with this action
set in android.content.IntentFilter you can leverage
ProximityManager's scan
states.public BluetoothStateChangeReceiver(OnBluetoothStateChangeListener stateChangeListener)
stateChangeListener - the state change listener