Rate this page:

IMessengerCompletionHandler

Interface that represents a completion handler that is used to get results of methods such as IConversation.update(IMessengerCompletionHandler), IMessenger.getUser(long, IMessengerCompletionHandler), etc.

An executor on which all events are received is specified via Voximplant.getClientInstance(Executor, Context, ClientConfig).

Methods

onError

Copy URL

void

onError(

IErrorEvent

errorEvent
)

Triggered if an error occurred as the method call result with the specified completion handler.

Parameters

  • errorEvent:

    IErrorEvent

    Event object with error details and service information

Returns

  • type:

    void

onSuccess

Copy URL

void

onSuccess(

T

resultEvent
)

Triggered if a method call with the specified completion handler is successfully completed.

Parameters

  • resultEvent:

    T

    Event object with result data and service information

Returns

  • type:

    void