public interface ChatRoomListener
Modifier and Type | Method and Description |
---|---|
void |
onChatMessageParticipantImdnStateChanged(ChatRoom chatRoom,
ChatMessage message,
ParticipantImdnState state)
Callback used to notify a participant state has changed in a message of this
chat room. |
void |
onChatMessageReceived(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a chat message has been received.
|
void |
onChatMessageSending(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a chat message is being sent.
|
void |
onChatMessageSent(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a chat message has been sent.
|
void |
onChatMessageShouldBeStored(ChatRoom chatRoom,
ChatMessage message)
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 chatRoom)
Callback used when a group chat room is created server-side to generate the
address of the chat room. |
void |
onConferenceJoined(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room has been joined.
|
void |
onConferenceLeft(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room has been left.
|
void |
onEphemeralEvent(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that an ephemeral related event has been
generated. |
void |
onEphemeralMessageDeleted(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that an ephemeral message has been deleted.
|
void |
onEphemeralMessageTimerStarted(ChatRoom chatRoom,
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 chatRoom,
Address remoteAddress,
boolean isComposing)
Is composing notification callback prototype.
|
void |
onMessageReceived(ChatRoom chatRoom,
ChatMessage message)
Callback used to notify a chat room that a message has been received.
|
void |
onNewEvent(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that an event log has been created.
|
void |
onParticipantAdded(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a participant has been added.
|
void |
onParticipantAdminStatusChanged(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that the admin status of a participant has
been changed. |
void |
onParticipantDeviceAdded(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a participant has been added.
|
void |
onParticipantDeviceRemoved(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a participant has been removed.
|
void |
onParticipantRegistrationSubscriptionRequested(ChatRoom chatRoom,
Address participantAddress)
Callback used when a group chat room server is subscribing to registration
state of a participant. |
void |
onParticipantRegistrationUnsubscriptionRequested(ChatRoom chatRoom,
Address participantAddress)
Callback used when a group chat room server is unsubscribing to registration
state of a participant. |
void |
onParticipantRemoved(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a chat room that a participant has been removed.
|
void |
onSecurityEvent(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify a security event in the chat room.
|
void |
onStateChanged(ChatRoom chatRoom,
ChatRoom.State newState)
Callback used to notify a chat room state has changed.
|
void |
onSubjectChanged(ChatRoom chatRoom,
EventLog eventLog)
Callback used to notify that the subject of a chat room has changed.
|
void |
onUndecryptableMessageReceived(ChatRoom chatRoom,
ChatMessage message)
Callback used to notify a chat room that a message has been received but we
were unable to decrypt it. |
void onEphemeralMessageDeleted(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onParticipantRegistrationSubscriptionRequested(@NonNull ChatRoom chatRoom, @NonNull Address participantAddress)
chatRoom
- LinphoneChatRoom object participantAddress
- LinphoneAddress object void onEphemeralEvent(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onStateChanged(@NonNull ChatRoom chatRoom, ChatRoom.State newState)
chatRoom
- LinphoneChatRoom object newState
- The new LinphoneChatRoomState of the chat room void onUndecryptableMessageReceived(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
chatRoom
- LinphoneChatRoom involved in this conversation message
- The LinphoneChatMessage that has been received void onChatMessageParticipantImdnStateChanged(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message, @NonNull ParticipantImdnState state)
chatRoom
- LinphoneChatRoom object message
- The LinphoneChatMessage for which a participant has it's statestate
- The LinphoneParticipantImdnState void onChatMessageSent(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onParticipantDeviceAdded(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onChatMessageShouldBeStored(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
chatRoom
- LinphoneChatRoom object message
- The LinphoneChatMessage that is being received void onIsComposingReceived(@NonNull ChatRoom chatRoom, @NonNull Address remoteAddress, boolean isComposing)
chatRoom
- LinphoneChatRoom involved in the conversation remoteAddress
- The LinphoneAddress that has sent the is-composingisComposing
- A boolean value telling whether the remote is composing orvoid onChatMessageReceived(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onSecurityEvent(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onChatMessageSending(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onNewEvent(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onParticipantAdded(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onParticipantRegistrationUnsubscriptionRequested(@NonNull ChatRoom chatRoom, @NonNull Address participantAddress)
chatRoom
- LinphoneChatRoom object participantAddress
- LinphoneAddress object void onParticipantDeviceRemoved(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onConferenceLeft(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onEphemeralMessageTimerStarted(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onParticipantAdminStatusChanged(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onConferenceAddressGeneration(@NonNull ChatRoom chatRoom)
chatRoom
- LinphoneChatRoom object void onConferenceJoined(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified void onMessageReceived(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message)
chatRoom
- LinphoneChatRoom object message
- The LinphoneChatMessage that has been received void onSubjectChanged(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog)
chatRoom
- LinphoneChatRoom object eventLog
- LinphoneEventLog The event to be notified