Package fi.bitwards.service
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConnected(BitwardsResource resource) Connected to resource via GATT connection.voidonConnecting(BitwardsResource resource) Connecting to resource via GATT connection.Methods inherited from interface fi.bitwards.service.BitwardsService.BLEResourceCallback
onResourceNotFound, onSelectResourceMethods inherited from interface fi.bitwards.service.BitwardsService.BLEResourceMaintenanceCallback
onMaintenanceCompletedMethods inherited from interface fi.bitwards.service.BitwardsService.NFCResourceCallback
onAccessDenied, onAccessGranted, onError
-
Method Details
-
onConnecting
Connecting to resource via GATT connection.- Parameters:
resource- the resource
-
onConnected
Connected to resource via GATT connection.- Parameters:
resource- the resource
-