Interface BitwardsService.BackgroundScanCallback

Enclosing class:
BitwardsService

public static interface BitwardsService.BackgroundScanCallback
Background BLE scan callback for reporting found/lost resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onError(int errorCode)
    An error occurred during background scan
    void
    BLE based resource was found, i.e.
    void
    BLE based resource was lost, i.e., it not discoverable with BLE.
  • Method Details

    • onResourceFound

      void onResourceFound(BitwardsResource resource)
      BLE based resource was found, i.e. it is discoverable with BLE. This method is called multiple times (also for already found resources).
      Parameters:
      resource - the found resource
    • onResourceLost

      void onResourceLost(BitwardsResource resource)
      BLE based resource was lost, i.e., it not discoverable with BLE.
      Parameters:
      resource - the lost resource
    • onError

      void onError(int errorCode)
      An error occurred during background scan
      Parameters:
      errorCode - an error code