public abstract class

OneToOneChatListener

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

Class Overview

One-to-One Chat event listener

Summary

Public Constructors
OneToOneChatListener()
Public Methods
abstract void onComposingEvent(ContactId contact, boolean status)
Callback called when an Is-composing event has been received.
abstract void onMessageStatusChanged(ContactId contact, 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(ContactId contact, Set<String> msgIds)
Callback called when a delete operation completed that resulted in that one or several one to one chat messages was deleted specified by the msgIds parameter corresponding to a specific contact.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OneToOneChatListener ()

Since: API Level 1.5

Public Methods

public abstract void onComposingEvent (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
contact Contact ID
status Is-composing status

public abstract void onMessageStatusChanged (ContactId contact, 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
contact Contact ID
mimeType MIME-type of message
msgId Message Id
status Status
reasonCode Reason code

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

Since: API Level 1.5

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

Parameters
contact contact id of those deleted messages
msgIds message ids of those deleted messages