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 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 resources
      callback - callback which is used to communicate back the selected resource
    • onResourceNotFound

      void onResourceNotFound(BitwardsResource resource)
      No BLE based resources were found during BLE scan (when using discoverAndAccessResource(..) method).
      Parameters:
      resource - the resource that was not found (can be null)