@NonNullByDefault public interface ScanListener
ScanListenerinterface for receiving scan operation events.
A class that is interested in errors and termination of an active scan has to implement this interface.
- Kai Kreuzer - Initial contribution
- See Also:
onFinishedvoid onFinished()Invoked synchronously when the according scan has finished.
This signal is sent latest when the defined timeout for the scan has been reached.
(@Nullable Exception exception)Invoked synchronously when the according scan has caused an error or has been aborted.
exception- the error which occurred (could be null)