Package org.linphone.core
Interface ChatRoomListener
- All Known Implementing Classes:
ChatRoomListenerStub
public interface ChatRoomListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 usingChatMessage.setToBeStored(boolean)
.void
onChatMessagesReceived
(ChatRoom chatRoom, EventLog[] eventLogs) Callback used to notify a chat room that one or many chat messages have been
received.void
onChatRoomRead
(ChatRoom chatRoom) Callback used to notify a chat room was "marked as read".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
onMessagesReceived
(ChatRoom chatRoom, ChatMessage[] chatMessages) Callback used to notify a chat room that many chat messages have been received.void
onNewEvent
(ChatRoom chatRoom, EventLog eventLog) Callback used to notify a chat room that an event log has been created.void
onNewEvents
(ChatRoom chatRoom, EventLog[] eventLogs) Callback used to notify a chat room that many event logs have 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
onParticipantDeviceMediaAvailabilityChanged
(ChatRoom chatRoom, EventLog eventLog) Callback used to notify a conference that the media availability of a
participant device has been changed.void
onParticipantDeviceRemoved
(ChatRoom chatRoom, EventLog eventLog) Callback used to notify a chat room that a participant has been removed.void
onParticipantDeviceStateChanged
(ChatRoom chatRoom, EventLog eventLog, ParticipantDevice.State state) Callback used to notify a conference that a participant device has changed
state.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.
-
Method Details
-
onIsComposingReceived
void onIsComposingReceived(@NonNull ChatRoom chatRoom, @NonNull Address remoteAddress, boolean isComposing) Is composing notification callback prototype.
- Parameters:
chatRoom
- LinphoneChatRoom involved in the conversationremoteAddress
- The LinphoneAddress that has sent the is-composing
notificationisComposing
- A boolean value telling whether the remote is composing or
not
-
onMessageReceived
Callback used to notify a chat room that a message has been received.
- Parameters:
chatRoom
- LinphoneChatRoom objectmessage
- The LinphoneChatMessage that has been received
-
onMessagesReceived
Callback used to notify a chat room that many chat messages have been received.
Only called when aggregation is enabled (aka [sip] chat_messages_aggregation ==
1 or using linphone_core_set_chat_messages_aggregation_enabled), it replaces
the single message received callback.- Parameters:
chatRoom
- LinphoneChatRoom objectchatMessages
- The list of events to be notified
-
onNewEvent
Callback used to notify a chat room that an event log has been created.
-
onNewEvents
Callback used to notify a chat room that many event logs have been created.
- Parameters:
chatRoom
-ChatRoom
objecteventLogs
- The list of events to be notified
-
onChatMessageReceived
Callback used to notify a chat room that a chat message has been received.
-
onChatMessagesReceived
Callback used to notify a chat room that one or many chat messages have been
received.
Only called when aggregation is enabled (aka [sip] chat_messages_aggregation ==
1 or usingCore.setChatMessagesAggregationEnabled(boolean)
), it replaces the
single chat message received callback.- Parameters:
chatRoom
-ChatRoom
objecteventLogs
- The list of events to be notified
-
onChatMessageSending
Callback used to notify a chat room that a chat message is being sent.
-
onChatMessageSent
Callback used to notify a chat room that a chat message has been sent.
-
onParticipantAdded
Callback used to notify a chat room that a participant has been added.
-
onParticipantRemoved
Callback used to notify a chat room that a participant has been removed.
-
onParticipantAdminStatusChanged
Callback used to notify a chat room that the admin status of a participant has
been changed.
-
onStateChanged
Callback used to notify a chat room state has changed.
- Parameters:
chatRoom
- LinphoneChatRoom objectnewState
- The new LinphoneChatRoomState of the chat room
-
onSecurityEvent
Callback used to notify a security event in the chat room.
-
onSubjectChanged
Callback used to notify that the subject of a chat room has changed.
-
onUndecryptableMessageReceived
Callback used to notify a chat room that a message has been received but we
were unable to decrypt it.
- Parameters:
chatRoom
-ChatRoom
involved in this conversationmessage
- TheChatMessage
that has been received
-
onParticipantDeviceAdded
Callback used to notify a chat room that a participant has been added.
-
onParticipantDeviceRemoved
Callback used to notify a chat room that a participant has been removed.
-
onParticipantDeviceStateChanged
void onParticipantDeviceStateChanged(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog, ParticipantDevice.State state) Callback used to notify a conference that a participant device has changed
state.
-
onParticipantDeviceMediaAvailabilityChanged
void onParticipantDeviceMediaAvailabilityChanged(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog) Callback used to notify a conference that the media availability of a
participant device has been changed.
-
onConferenceJoined
Callback used to notify a chat room has been joined.
-
onConferenceLeft
Callback used to notify a chat room has been left.
-
onEphemeralEvent
Callback used to notify a chat room that an ephemeral related event has been
generated.
-
onEphemeralMessageTimerStarted
Callback used to notify a chat room that the lifespan of an ephemeral message
before disappearing has started to decrease.
This callback is called when the ephemeral message is read by the receiver. -
onEphemeralMessageDeleted
Callback used to notify a chat room that an ephemeral message has been deleted.
-
onConferenceAddressGeneration
Callback used when a group chat room is created server-side to generate the
address of the chat room.
The functionChatRoom.setConferenceAddress(org.linphone.core.Address)
needs to be called by this
callback.- Parameters:
chatRoom
-ChatRoom
object
-
onParticipantRegistrationSubscriptionRequested
void onParticipantRegistrationSubscriptionRequested(@NonNull ChatRoom chatRoom, @NonNull Address participantAddress) Callback used when a group chat room server is subscribing to registration
state of a participant.
-
onParticipantRegistrationUnsubscriptionRequested
void onParticipantRegistrationUnsubscriptionRequested(@NonNull ChatRoom chatRoom, @NonNull Address participantAddress) Callback used when a group chat room server is unsubscribing to registration
state of a participant.
-
onChatMessageShouldBeStored
Callback used to tell the core whether or not to store the incoming message in
db or not usingChatMessage.setToBeStored(boolean)
.
- Parameters:
chatRoom
-ChatRoom
objectmessage
- TheChatMessage
that is being received
-
onChatMessageParticipantImdnStateChanged
void onChatMessageParticipantImdnStateChanged(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message, @NonNull ParticipantImdnState state) Callback used to notify a participant state has changed in a message of this
chat room.
- Parameters:
chatRoom
-ChatRoom
objectmessage
- TheChatMessage
for which a participant has it's state
changedstate
- TheParticipantImdnState
-
onChatRoomRead
Callback used to notify a chat room was "marked as read".
- Parameters:
chatRoom
- The LinphoneChatRoom object that was marked as read
-