目录

CLASS info
public abstract class ScanEndpointCallback
扫描结果的监听回调类

Public Constructor Summary

Constructor
public ScanEndpointCallback()
创建ScanEndpointCallback对象

Public Method Summary

Return typeMethod name
abstract voidonFound(String endpointId, ScanEndpointInfo info)
发现设备时回调
abstract voidonLost(String endpointId)
已发现的设备丢失时回调

Public Constructors

Constructor
public ScanEndpointCallback()
创建ScanEndpointCallback对象

Public Method

Method
public abstract void onFound(String endpointId, ScanEndpointInfo info)
发现设备时回调。

Parameters

Parameter nameParameter desc
endpointId远端设备的endpointId
info已发现的设备信息
Method
public abstract void onLost(String endpointId)
已发现的设备丢失时回调,只能针对之前调用过onFound(String endpointId, ScanEndpointInfo info)的设备。

Parameters

Parameter nameParameter desc
endpointId远端设备的endpointId