Share via


MethodCallback Interface

public interface MethodCallback

The callback to be executed each time a direct method is invoked on this client.

Method Details

onMethodInvoked

public DirectMethodResponse onMethodInvoked(String methodName, DirectMethodPayload methodPayload, Object context)

The

Parameters:

methodName - The name of the method being invoked.
methodPayload - The payload of the method being invoked. May be null
context - The context set when subscribing to direct methods. Will be null if no context was set when subscribing.

Returns:

The direct method response to deliver to the process that invoked this method. May not be null.

Applies to