public class LocalDeviceMgr extends java.lang.Object implements ILocalDeviceMgr
| 限定符和类型 | 方法和说明 |
|---|---|
static ILocalDeviceMgr |
getInstance()
获取 ILocalDeviceMgr 接口实例。
|
java.util.List<DeviceInfo> |
getLanDevices()
获取之前发现的所有设备
|
void |
startDiscovery(android.content.Context context,
IDiscoveryListener listener)
开始设备发现
|
void |
stopDiscovery()
停止设备发现
启动发现设备后,随时可以使用此方法停止。 |
public static ILocalDeviceMgr getInstance()
ILocalDeviceMgrpublic void startDiscovery(android.content.Context context,
IDiscoveryListener listener)
ILocalDeviceMgrstartDiscovery 在接口中 ILocalDeviceMgrcontext - 当前上下文listener - 监听器,请参见 IDiscoveryListenerpublic void stopDiscovery()
ILocalDeviceMgrstopDiscovery 在接口中 ILocalDeviceMgrpublic java.util.List<DeviceInfo> getLanDevices()
ILocalDeviceMgrgetLanDevices 在接口中 ILocalDeviceMgrDeviceInfo