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 will be received is specified via Voximplant.getClientInstance(Executor, Context, ClientConfig).
Methods
onError
void
onError( errorEvent)
Invoked when an error occurred as the method call result with the specified completion handler.
Parameters
errorEvent:
Event object with error details and service information
Returns
type:
void
onSuccess
void
onSuccess(T
resultEvent)
Invoked when 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