-
public interface IThingMatterDeviceConnectManager
Device online status.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
isDiscovered(String devId)
Whether the specified device is discovered by dns-sdDeprecated, use isOnline instead abstract boolean
isOnline(String devId)
Whether the specified device is online abstract void
addOperationalDeviceDiscoveryListener(IOperationalDeviceDiscoveryListener listener)
Add a listener to monitor the device discovery statusDeprecated, use registerMatterOnlineListener instead abstract void
registerMatterOnlineListener(MatterOnlineListener listener)
Register a listener to monitor the device online status abstract void
unregisterMatterOnlineListener(MatterOnlineListener listener)
Unregister a listener to monitor the device online status abstract void
connect(String devId, IMatterConnectedCallback callback)
Connect to the specified device abstract void
disconnect(String devId)
Disconnect to the specified device -
-
Method Detail
-
isDiscovered
@Deprecated() abstract boolean isDiscovered(String devId)
Whether the specified device is discovered by dns-sd
Deprecated, use isOnline instead
- Parameters:
devId
- thing device id
-
isOnline
abstract boolean isOnline(String devId)
Whether the specified device is online
- Parameters:
devId
- thing device id
-
addOperationalDeviceDiscoveryListener
@Deprecated() abstract void addOperationalDeviceDiscoveryListener(IOperationalDeviceDiscoveryListener listener)
Add a listener to monitor the device discovery status
Deprecated, use registerMatterOnlineListener instead
- Parameters:
listener
- listener
-
registerMatterOnlineListener
abstract void registerMatterOnlineListener(MatterOnlineListener listener)
Register a listener to monitor the device online status
- Parameters:
listener
- listener
-
unregisterMatterOnlineListener
abstract void unregisterMatterOnlineListener(MatterOnlineListener listener)
Unregister a listener to monitor the device online status
- Parameters:
listener
- listener
-
connect
abstract void connect(String devId, IMatterConnectedCallback callback)
Connect to the specified device
- Parameters:
devId
- thing device idcallback
- callback
-
disconnect
abstract void disconnect(String devId)
Disconnect to the specified device
- Parameters:
devId
- thing device id
-
-
-
-