Package fi.bitwards.service
Interface BitwardsService.BackgroundScanCallback
- Enclosing class:
BitwardsService
public static interface BitwardsService.BackgroundScanCallback
Background BLE scan callback for reporting found/lost resources.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonError(int errorCode) An error occurred during background scanvoidonResourceFound(BitwardsResource resource) BLE based resource was found, i.e.voidonResourceLost(BitwardsResource resource) BLE based resource was lost, i.e., it not discoverable with BLE.
-
Method Details
-
onResourceFound
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
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
-