目录

CLASS info
public abstract class ScanEndpointCallback
Represents the callback listener class called during endpoint scanning.

Public Constructor Summary

Constructor
public ScanEndpointCallback()
Creates a ScanEndpointCallback object.

Public Method Summary

Return typeMethod name
abstract voidonFound(String endpointId, ScanEndpointInfo info)
Called back when an endpoint is discovered.
abstract voidonLost(String endpointId)
Called back when an endpoint is no longer discoverable.

Public Constructors

Constructor
public ScanEndpointCallback ()
Creates a ScanEndpointCallback object.

Public Methods

Method
public abstract void onFound(String endpointId, ScanEndpointInfo info)
Called back when an endpoint is discovered.

Parameters

Parameter nameParameter desc
endpointIdID of the remote endpoint.
infoInformation about the discovered endpoint.
Method
public abstract void onLost(String endpointId)
Called back when an endpoint is no longer discoverable. The method applies only to endpoints for which onFound (String endpointId, ScanEndpointInfo info) is called.

Parameters

Parameter nameParameter desc
endpointIdID of the remote endpoint.