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:
Applies to
Azure SDK for Java