Package 

Interface BluetoothStateChangeReceiver.Listener

  • All Implemented Interfaces:
    com.pointrlabs.core.receiver.PointrBroadcastReceiver.Listener

    
    public interface BluetoothStateChangeReceiver.Listener
     implements PointrBroadcastReceiver.Listener
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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