We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesNearby Servicenearby.discoveryScanEndpointCallback

discovery.ScanEndpointCallback

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.
This page may contain third-party content. For details, click here.