Package org.linphone.core
Class ChatRoomListenerStub
java.lang.Object
org.linphone.core.ChatRoomListenerStub
- All Implemented Interfaces:
ChatRoomListener
-
Constructor Summary
-
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.
-
Constructor Details
-
ChatRoomListenerStub
public ChatRoomListenerStub()
-
-
Method Details
-
onIsComposingReceived
public void onIsComposingReceived(@NonNull ChatRoom chatRoom, @NonNull Address remoteAddress, boolean isComposing) Description copied from interface:ChatRoomListener
Is composing notification callback prototype.
- Specified by:
onIsComposingReceived
in interfaceChatRoomListener
- 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
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a message has been received.
- Specified by:
onMessageReceived
in interfaceChatRoomListener
- Parameters:
chatRoom
- LinphoneChatRoom objectmessage
- The LinphoneChatMessage that has been received
-
onMessagesReceived
Description copied from interface:ChatRoomListener
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.- Specified by:
onMessagesReceived
in interfaceChatRoomListener
- Parameters:
chatRoom
- LinphoneChatRoom objectchatMessages
- The list of events to be notified
-
onNewEvent
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that an event log has been created.
- Specified by:
onNewEvent
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onNewEvents
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that many event logs have been created.
- Specified by:
onNewEvents
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLogs
- The list of events to be notified
-
onChatMessageReceived
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a chat message has been received.
- Specified by:
onChatMessageReceived
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onChatMessagesReceived
Description copied from interface:ChatRoomListener
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.- Specified by:
onChatMessagesReceived
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLogs
- The list of events to be notified
-
onChatMessageSending
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a chat message is being sent.
- Specified by:
onChatMessageSending
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onChatMessageSent
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a chat message has been sent.
- Specified by:
onChatMessageSent
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onParticipantAdded
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a participant has been added.
- Specified by:
onParticipantAdded
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onParticipantRemoved
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a participant has been removed.
- Specified by:
onParticipantRemoved
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onParticipantAdminStatusChanged
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that the admin status of a participant has
been changed.
- Specified by:
onParticipantAdminStatusChanged
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onStateChanged
Description copied from interface:ChatRoomListener
Callback used to notify a chat room state has changed.
- Specified by:
onStateChanged
in interfaceChatRoomListener
- Parameters:
chatRoom
- LinphoneChatRoom objectnewState
- The new LinphoneChatRoomState of the chat room
-
onSecurityEvent
Description copied from interface:ChatRoomListener
Callback used to notify a security event in the chat room.
- Specified by:
onSecurityEvent
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onSubjectChanged
Description copied from interface:ChatRoomListener
Callback used to notify that the subject of a chat room has changed.
- Specified by:
onSubjectChanged
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onUndecryptableMessageReceived
public void onUndecryptableMessageReceived(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message) Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a message has been received but we
were unable to decrypt it.
- Specified by:
onUndecryptableMessageReceived
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
involved in this conversationmessage
- TheChatMessage
that has been received
-
onParticipantDeviceAdded
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a participant has been added.
- Specified by:
onParticipantDeviceAdded
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onParticipantDeviceRemoved
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that a participant has been removed.
- Specified by:
onParticipantDeviceRemoved
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onParticipantDeviceStateChanged
public void onParticipantDeviceStateChanged(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog, ParticipantDevice.State state) Description copied from interface:ChatRoomListener
Callback used to notify a conference that a participant device has changed
state.
- Specified by:
onParticipantDeviceStateChanged
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notifiedstate
- new participant device state
-
onParticipantDeviceMediaAvailabilityChanged
public void onParticipantDeviceMediaAvailabilityChanged(@NonNull ChatRoom chatRoom, @NonNull EventLog eventLog) Description copied from interface:ChatRoomListener
Callback used to notify a conference that the media availability of a
participant device has been changed.
- Specified by:
onParticipantDeviceMediaAvailabilityChanged
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onConferenceJoined
Description copied from interface:ChatRoomListener
Callback used to notify a chat room has been joined.
- Specified by:
onConferenceJoined
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onConferenceLeft
Description copied from interface:ChatRoomListener
Callback used to notify a chat room has been left.
- Specified by:
onConferenceLeft
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onEphemeralEvent
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that an ephemeral related event has been
generated.
- Specified by:
onEphemeralEvent
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onEphemeralMessageTimerStarted
Description copied from interface:ChatRoomListener
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.- Specified by:
onEphemeralMessageTimerStarted
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onEphemeralMessageDeleted
Description copied from interface:ChatRoomListener
Callback used to notify a chat room that an ephemeral message has been deleted.
- Specified by:
onEphemeralMessageDeleted
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objecteventLog
-EventLog
The event to be notified
-
onConferenceAddressGeneration
Description copied from interface:ChatRoomListener
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.- Specified by:
onConferenceAddressGeneration
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
object
-
onParticipantRegistrationSubscriptionRequested
public void onParticipantRegistrationSubscriptionRequested(@NonNull ChatRoom chatRoom, @NonNull Address participantAddress) Description copied from interface:ChatRoomListener
Callback used when a group chat room server is subscribing to registration
state of a participant.
- Specified by:
onParticipantRegistrationSubscriptionRequested
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objectparticipantAddress
-Address
object
-
onParticipantRegistrationUnsubscriptionRequested
public void onParticipantRegistrationUnsubscriptionRequested(@NonNull ChatRoom chatRoom, @NonNull Address participantAddress) Description copied from interface:ChatRoomListener
Callback used when a group chat room server is unsubscribing to registration
state of a participant.
- Specified by:
onParticipantRegistrationUnsubscriptionRequested
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objectparticipantAddress
-Address
object
-
onChatMessageShouldBeStored
Description copied from interface:ChatRoomListener
Callback used to tell the core whether or not to store the incoming message in
db or not usingChatMessage.setToBeStored(boolean)
.
- Specified by:
onChatMessageShouldBeStored
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objectmessage
- TheChatMessage
that is being received
-
onChatMessageParticipantImdnStateChanged
public void onChatMessageParticipantImdnStateChanged(@NonNull ChatRoom chatRoom, @NonNull ChatMessage message, @NonNull ParticipantImdnState state) Description copied from interface:ChatRoomListener
Callback used to notify a participant state has changed in a message of this
chat room.
- Specified by:
onChatMessageParticipantImdnStateChanged
in interfaceChatRoomListener
- Parameters:
chatRoom
-ChatRoom
objectmessage
- TheChatMessage
for which a participant has it's state
changedstate
- TheParticipantImdnState
-
onChatRoomRead
Description copied from interface:ChatRoomListener
Callback used to notify a chat room was "marked as read".
- Specified by:
onChatRoomRead
in interfaceChatRoomListener
- Parameters:
chatRoom
- The LinphoneChatRoom object that was marked as read
-