目录

ScanEndpointCallback

Class Info

public abstract class ScanEndpointCallback

扫描结果的监听回调类。发现设备时,调用onFound(String, ScanEndpointInfo);已发现设备失连时,调用onLost(String)。

Public Constructor Summary

Constructor

public ScanEndpointCallback()

创建ScanEndpointCallback对象。

Public Method Summary

Qualifier and Type

Method Name and Description

abstract void

onFound(String endpointId, ScanEndpointInfo info)

发现设备时回调。

abstract void

onLost(String endpointId)

已发现的设备失连时回调。

Public Constructors

[h2]ScanEndpointCallback

Constructor

public ScanEndpointCallback()

创建ScanEndpointCallback对象。

Public Methods

[h2]onFound

Method

public abstract void onFound(String endpointId, ScanEndpointInfo info)

发现设备时回调。

Parameters

Name

Description

endpointId

远端设备的endpointId。

info

已发现的设备信息。

[h2]onLost

Method

public abstract void onLost(String endpointId)

已发现的设备失连时回调。只能针对之前调用过onFound(String, ScanEndpointInfo)的设备。

Parameters

Name

Description

endpointId

远端设备的endpointId。