Rate this page:

MessengerCallback

This API is in beta and subject to change.

Interface that represents a callback that is used to get results of methods such as Conversation.update, Messenger.getUser, etc.

An executor on which all events are received is specified via com.voximplant.android.sdk.core.ClientConfig.callbackExecutor.

Methods

onSuccess

Copy URL
fun onSuccess(resultEvent: 

MessengerCallback

):

Unit

This API is in beta and subject to change.

Triggered when a method call with the callback is successfully completed.

Parameters

  • resultEvent:

    MessengerCallback

    Event object with result data and service information

Returns

  • type:

    Unit

onError

Copy URL
fun onError(errorEvent: 

ErrorEvent

):

Unit

This API is in beta and subject to change.

Triggered when an error occurred as the method call result with the callback.

Parameters

  • errorEvent:

    ErrorEvent

    Event object with error details and service information

Returns

  • type:

    Unit