-
- All Implemented Interfaces:
-
com.pointrlabs.core.receiver.PointrBroadcastReceiver.Listener
public interface BluetoothStateChangeReceiver.Listener implements PointrBroadcastReceiver.Listener
-
-
Method Summary
Modifier and Type Method Description abstract void
onBluetoothStateChanged(int bluetoothState)
Notifies when bluetooth state is changed abstract void
onBluetoothCorrupted()
Notifies the listeners when the system bluetooth app has entered a bad state, where no new GattClients can be registered, hence no bluetooth scanning can be made. abstract void
onBluetoothRestored()
This is for the case where bluetooth of the device was corrupted but then bluetooth medic was able to resolve the issue by doing a power cycle. -
-
Method Detail
-
onBluetoothStateChanged
abstract void onBluetoothStateChanged(int bluetoothState)
Notifies when bluetooth state is changed
- Parameters:
bluetoothState
- state extracted from ACTION_STATE_CHANGED action EXTRA_STATE
-
onBluetoothCorrupted
abstract void onBluetoothCorrupted()
Notifies the listeners when the system bluetooth app has entered a bad state, where no new GattClients can be registered, hence no bluetooth scanning can be made.
Currently there is no comprehensive solution for this, so we notify the third party to act as they please. This error loop is resolved only by deleting the storage of the bluetooth system app from Settings->Apps->System Apps->Bluetooth->Storage->Clear Storage
-
onBluetoothRestored
abstract void onBluetoothRestored()
This is for the case where bluetooth of the device was corrupted but then bluetooth medic was able to resolve the issue by doing a power cycle.
This means that the SDK will be able to scan beacons without any problem
-
-
-
-