Interface BitwardsService.BLEResourceConnectionStateCallback

All Superinterfaces:
BitwardsService.BLEResourceCallback, BitwardsService.BLEResourceMaintenanceCallback, BitwardsService.NFCResourceCallback
Enclosing class:
BitwardsService

public static interface BitwardsService.BLEResourceConnectionStateCallback extends BitwardsService.BLEResourceMaintenanceCallback
BLEResourceConnectionStateCallback can be used instead of basic BLEResourceCallback interface. This interface can be used to get callbacks to notifyi about three additional states:
  • When connection attempt to the resource via Bluetooth GATT.
  • When connection has been established to the resource via Bluetooth GATT.
  • When the maintenance phase has been completed with the resource.
Please note that these callbacks can be called multiple times as the implementation may retry connections to the resource internally.
  • Method Details

    • onConnecting

      void onConnecting(BitwardsResource resource)
      Connecting to resource via GATT connection.
      Parameters:
      resource - the resource
    • onConnected

      void onConnected(BitwardsResource resource)
      Connected to resource via GATT connection.
      Parameters:
      resource - the resource