SIGN UP

IMessengerListener

Interface that may be used to handle messenger events.

Methods

void isDelivered(IConversationServiceEvent event)

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

Parameters

void isRead(IConversationServiceEvent event)

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

Parameters

void onCreateConversation(IConversationEvent event)

Parameters

void onEditConversation(IConversationEvent event)

Invoked when conversation properties were modified.

Parameters

void onEditMessage(IMessageEvent event)

Invoked when message was edited.

Parameters

  • Event object with message data and service information

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

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

void onGetConversation(IConversationEvent event)

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

Parameters

void onGetUser(IUserEvent event)

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

Parameters

  • Event object with user data and service information

void onRemoveConversation(IConversationEvent event)

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

Parameters

void onRemoveMessage(IMessageEvent event)

Invoked when message was removed.

Parameters

  • Event object with message data and service information

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

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

void onSetStatus(IStatusEvent event)

Invoked after user presence state has been changed.

Parameters

  • Event object with user status data and service information

void onSubscribe(ISubscriptionEvent event)

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

Parameters

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

void onUnsubscribe(ISubscriptionEvent event)

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

Parameters