public abstract class

GroupChatListener

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.chat.GroupChatListener

Class Overview

Group chat event listener

Summary

Public Constructors
GroupChatListener()
Public Methods
abstract void onComposingEvent(String chatId, ContactId contact, boolean status)
Callback called when an Is-composing event has been received.
abstract void onDeleted(Set<String> chatIds)
Callback called when a delete operation completed that resulted in that one or several group chats was deleted specified by the chatIds parameter.
abstract void onMessageGroupDeliveryInfoChanged(String chatId, ContactId contact, String mimeType, String msgId, GroupDeliveryInfo.Status status, GroupDeliveryInfo.ReasonCode reasonCode)
Callback called when a group delivery info status/reasonCode was changed for a single recipient to a group message.
abstract void onMessageStatusChanged(String chatId, String mimeType, String msgId, ChatLog.Message.Content.Status status, ChatLog.Message.Content.ReasonCode reasonCode)
Callback called when a message status/reasonCode is changed.
abstract void onMessagesDeleted(String chatId, Set<String> msgIds)
Callback called when a delete operation completed that resulted in that one or several group chat messages was deleted specified by the msgIds parameter corresponding to a specific group chat.
abstract void onParticipantStatusChanged(String chatId, ContactId contact, GroupChat.ParticipantStatus status)
Callback called when a participant status has been changed in a group chat.
abstract void onStateChanged(String chatId, GroupChat.State state, GroupChat.ReasonCode reasonCode)
Callback called when the group chat state is changed
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GroupChatListener ()

Since: API Level 1.5

Public Methods

public abstract void onComposingEvent (String chatId, ContactId contact, boolean status)

Since: API Level 1.5

Callback called when an Is-composing event has been received. If the remote is typing a message the status is set to true, else it is false.

Parameters
chatId the chat ID
contact the contact ID
status Is-composing status

public abstract void onDeleted (Set<String> chatIds)

Since: API Level 1.5

Callback called when a delete operation completed that resulted in that one or several group chats was deleted specified by the chatIds parameter.

Parameters
chatIds chat ids of those deleted chats

public abstract void onMessageGroupDeliveryInfoChanged (String chatId, ContactId contact, String mimeType, String msgId, GroupDeliveryInfo.Status status, GroupDeliveryInfo.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when a group delivery info status/reasonCode was changed for a single recipient to a group message.

Parameters
chatId chat id
contact contact
mimeType MIME-type
msgId message id
status message status
reasonCode status reason code

public abstract void onMessageStatusChanged (String chatId, String mimeType, String msgId, ChatLog.Message.Content.Status status, ChatLog.Message.Content.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when a message status/reasonCode is changed.

Parameters
chatId chat id
mimeType MIME-type
msgId message id
status message status
reasonCode reason code

public abstract void onMessagesDeleted (String chatId, Set<String> msgIds)

Since: API Level 1.5

Callback called when a delete operation completed that resulted in that one or several group chat messages was deleted specified by the msgIds parameter corresponding to a specific group chat.

Parameters
chatId chat id of those deleted messages
msgIds message ids of those deleted messages

public abstract void onParticipantStatusChanged (String chatId, ContactId contact, GroupChat.ParticipantStatus status)

Since: API Level 1.5

Callback called when a participant status has been changed in a group chat.

Parameters
chatId chat id
contact contact id
status participant status

public abstract void onStateChanged (String chatId, GroupChat.State state, GroupChat.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when the group chat state is changed

Parameters
chatId chat id
state group chat state
reasonCode reason code