public interface ChatRoomListener
Modifier and Type | Method and Description |
---|---|
void |
onChatMessageReceived(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that a chat message has been received.
|
void |
onChatMessageSent(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that a chat message is being sent.
|
void |
onChatMessageShouldBeStored(ChatRoom cr,
ChatMessage msg)
Callback used to tell the core whether or not to store the incoming message in
db or not using linphone_chat_message_set_to_be_stored.
|
void |
onConferenceAddressGeneration(ChatRoom cr)
Callback used when a group chat room is created server-side to generate the
address of the chat room.
|
void |
onConferenceJoined(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room has been joined.
|
void |
onConferenceLeft(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room has been left.
|
void |
onEphemeralEvent(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that an ephemeral related event has been
generated.
|
void |
onEphemeralMessageDeleted(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that an ephemeral message has been deleted.
|
void |
onEphemeralMessageTimerStarted(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that the lifespan of an ephemeral message
before disappearing has started to decrease.
|
void |
onIsComposingReceived(ChatRoom cr,
Address remoteAddr,
boolean isComposing)
Is composing notification callback prototype.
|
void |
onMessageReceived(ChatRoom cr,
ChatMessage msg)
Callback used to notify a chat room that a message has been received.
|
void |
onParticipantAdded(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that a participant has been added.
|
void |
onParticipantAdminStatusChanged(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that the admin status of a participant has
been changed.
|
void |
onParticipantDeviceAdded(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that a participant has been added.
|
void |
onParticipantDeviceRemoved(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that a participant has been removed.
|
void |
onParticipantRegistrationSubscriptionRequested(ChatRoom cr,
Address participantAddr)
Callback used when a group chat room server is subscribing to registration
state of a participant.
|
void |
onParticipantRegistrationUnsubscriptionRequested(ChatRoom cr,
Address participantAddr)
Callback used when a group chat room server is unsubscribing to registration
state of a participant.
|
void |
onParticipantRemoved(ChatRoom cr,
EventLog eventLog)
Callback used to notify a chat room that a participant has been removed.
|
void |
onSecurityEvent(ChatRoom cr,
EventLog eventLog)
Callback used to notify a security event in the chat room.
|
void |
onStateChanged(ChatRoom cr,
ChatRoom.State newState)
Callback used to notify a chat room state has changed.
|
void |
onSubjectChanged(ChatRoom cr,
EventLog eventLog)
Callback used to notify that the subject of a chat room has changed.
|
void |
onUndecryptableMessageReceived(ChatRoom cr,
ChatMessage msg)
Callback used to notify a chat room that a message has been received but we
were unable to decrypt it.
|
void onStateChanged(ChatRoom cr, ChatRoom.State newState)
newState
- The new state of the chat roomvoid onParticipantRegistrationUnsubscriptionRequested(ChatRoom cr, Address participantAddr)
participantAddr
- LinphoneAddress objectvoid onParticipantAdminStatusChanged(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onParticipantRemoved(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onEphemeralMessageTimerStarted(ChatRoom cr, EventLog eventLog)
cr
- LinphoneChatRoom objectvoid onUndecryptableMessageReceived(ChatRoom cr, ChatMessage msg)
msg
- The LinphoneChatMessage that has been receivedvoid onParticipantAdded(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onEphemeralEvent(ChatRoom cr, EventLog eventLog)
cr
- LinphoneChatRoom objectvoid onChatMessageReceived(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onConferenceAddressGeneration(ChatRoom cr)
cr
- LinphoneChatRoom objectvoid onParticipantDeviceAdded(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onSecurityEvent(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onConferenceLeft(ChatRoom cr, EventLog eventLog)
cr
- LinphoneChatRoom objectvoid onSubjectChanged(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onChatMessageSent(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onConferenceJoined(ChatRoom cr, EventLog eventLog)
cr
- LinphoneChatRoom objectvoid onMessageReceived(ChatRoom cr, ChatMessage msg)
msg
- The LinphoneChatMessage that has been receivedvoid onEphemeralMessageDeleted(ChatRoom cr, EventLog eventLog)
cr
- LinphoneChatRoom objectvoid onParticipantRegistrationSubscriptionRequested(ChatRoom cr, Address participantAddr)
participantAddr
- LinphoneAddress objectvoid onParticipantDeviceRemoved(ChatRoom cr, EventLog eventLog)
eventLog
- LinphoneEventLog The event to be notifiedvoid onIsComposingReceived(ChatRoom cr, Address remoteAddr, boolean isComposing)
isComposing
- A boolean value telling whether the remote is composing or
notvoid onChatMessageShouldBeStored(ChatRoom cr, ChatMessage msg)
msg
- The LinphoneChatMessage that is being received