Package fi.bitwards.service
Interface BitwardsService.BLEResourceCallback
- All Superinterfaces:
BitwardsService.NFCResourceCallback
- All Known Subinterfaces:
BitwardsService.BLEResourceConnectionStateCallback,BitwardsService.BLEResourceMaintenanceCallback
- All Known Implementing Classes:
BitwardsService.BluetoothProximityAccess
- Enclosing class:
BitwardsService
public static interface BitwardsService.BLEResourceCallback
extends BitwardsService.NFCResourceCallback
Resource callback notifications when connecting and communicating with a resource using BLE.
Used when accessing and discovering and accessing a resource.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonResourceNotFound(BitwardsResource resource) No BLE based resources were found during BLE scan (when using discoverAndAccessResource(..) method).voidonSelectResource(List<BitwardsResource> resources, BitwardsService.SelectResourceCallback callback) More that one known resource was found during BLE scan (when using discoverAndAccessResource(..) method).Methods inherited from interface fi.bitwards.service.BitwardsService.NFCResourceCallback
onAccessDenied, onAccessGranted, onError
-
Method Details
-
onSelectResource
void onSelectResource(List<BitwardsResource> resources, BitwardsService.SelectResourceCallback callback) More that one known resource was found during BLE scan (when using discoverAndAccessResource(..) method). This is used to present end user a dialog for selecting the resource which end user intends to access.- Parameters:
resources- list of found resourcescallback- callback which is used to communicate back the selected resource
-
onResourceNotFound
No BLE based resources were found during BLE scan (when using discoverAndAccessResource(..) method).- Parameters:
resource- the resource that was not found (can be null)
-