你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DeviceMethod Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. DeviceTwin. DeviceMethod
- com.
public final class DeviceMethod
Constructor Summary
Constructor | Description |
---|---|
DeviceMethod(DeviceIO deviceIO, DeviceClientConfig config, IotHubEventCallback deviceMethodStatusCallback, Object deviceMethodStatusCallbackContext) |
This constructor creates an instance of device method class which helps facilitate the interation for device methods between the user and Iot |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
subscribeToDeviceMethod(DeviceTwin.DeviceMethodCallback deviceMethodCallback, Object deviceMethodCallbackContext)
A method which subscribes to receive device method invocation for the user with the Iot |
Methods inherited from java.lang.Object
Constructor Details
DeviceMethod
public DeviceMethod(DeviceIO deviceIO, DeviceClientConfig config, IotHubEventCallback deviceMethodStatusCallback, Object deviceMethodStatusCallbackContext)
This constructor creates an instance of device method class which helps facilitate the interation for device methods between the user and IotHub.
Parameters:
null
null
null
.
null
Throws:
Method Details
subscribeToDeviceMethod
public void subscribeToDeviceMethod(DeviceTwin.DeviceMethodCallback deviceMethodCallback, Object deviceMethodCallbackContext)
A method which subscribes to receive device method invocation for the user with the IotHub.
Parameters:
Throws: