Package com.blukii.sdk.discovery
Interface BlukiiClient.OnDiscoveryListener
- Enclosing class:
- BlukiiClient
public static interface BlukiiClient.OnDiscoveryListener
Callbacks for the BLE discovery.
Discovery callbacks are registered by calling BlukiiClient.initDiscovery(OnDiscoveryListener)
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDiscoveryResult
(List<DiscoveryData> discoveryResultList) Will be called frequently after one scan duration for returning the scan results.void
onError
(BlukiiDiscoveryError error) Will be called if discovery fails because of an errorvoid
onInfo
(BlukiiDiscoveryInfo info) Will be called for discovery state information
-
Method Details
-
onDiscoveryResult
Will be called frequently after one scan duration for returning the scan results.If no BLE modules has been found discoveryResultList is an empty list (not null).
If the discovery failed because of an error onDiscoveryResult will not be called.
- Parameters:
discoveryResultList
- list of discoveredDiscoveryData
- See Also:
-
onError
Will be called if discovery fails because of an error- Parameters:
error
- error code- See Also:
-
onInfo
Will be called for discovery state information- Parameters:
info
- info code- See Also:
-