SIGN UP

IMessengerListener

Interface that may be used to handle messenger events.

Methods

isDelivered

void isDelivered(IConversationServiceEvent event)

Invoked after another device with same logged in user called IConversation.markAsDelivered(long) method.

Parameters

isRead

void isRead(IConversationServiceEvent event)

Invoked after another device with same logged in user called the IConversation.markAsRead(long) method.

Parameters

onCreateConversation

void onCreateConversation(IConversationEvent event)

Parameters

onEditConversation

void onEditConversation(IConversationEvent event)

Invoked when conversation properties were modified.

Parameters

onEditMessage

void onEditMessage(IMessageEvent event)

Invoked when message was edited.

Parameters

  • Event object with message data and service information

onEditUser

void onEditUser(IUserEvent event)

Invoked as the result of IMessenger.editUser(Map, Map) method call. Triggered only for users specified in the 'subscribe' method call.

Parameters

  • Event object with user data and service information

onError

void onError(IErrorEvent event)

Invoked if error occurred as the result of any messenger API methods call

Parameters

  • Event object with error details and service information

onGetConversation

void onGetConversation(IConversationEvent event)

Invoked when conversation description is received as the result of IMessenger.getConversation(String)

Parameters

onGetUser

void onGetUser(IUserEvent event)

Invoked as the result of IMessenger.getUser(String) method call

Parameters

  • Event object with user data and service information

onRemoveConversation

void onRemoveConversation(IConversationEvent event)

Invoked when conversation was removed as the result of IMessenger.removeConversation(String) method call.

Parameters

onRemoveMessage

void onRemoveMessage(IMessageEvent event)

Invoked when message was removed.

Parameters

  • Event object with message data and service information

onRetransmitEvents

void onRetransmitEvents(IRetransmitEvent event)

Invoked as the result of IConversation.retransmitEvents(long, long) method call on some conversation for this SDK instance

Parameters

  • Event object with retransmitted events and service information

onSendMessage

void onSendMessage(IMessageEvent event)

Invoked when new message is received as the result of IConversation.sendMessage(String, List) called by any user.

Parameters

  • Event object with message data and service information

onSetStatus

void onSetStatus(IStatusEvent event)

Invoked after user presence state has been changed.

Parameters

  • Event object with user status data and service information

onSubscribe

void onSubscribe(ISubscriptionEvent event)

Invoked as the result of IMessenger.subscribe(List) method call.

Parameters

onTyping

void onTyping(IConversationServiceEvent event)

Invoked when information that some user is typing something is received as the result of IConversation.typing() called by any user.

Parameters

onUnsubscribe

void onUnsubscribe(ISubscriptionEvent event)

Invoked as the result of IMessenger.unSubscribe(List) method call.

Parameters