Package org.linphone.core
Interface ChatRoomParams
public interface ChatRoomParams
Object defining parameters for a
Can be created with
If the
other parameter is required, but
benefit from all features a {@link ChatRoom#Backend#FlexisipChat} can offer
like conversation with multiple participants and a subject, end-to-end
encryption, ephemeral messages, etc... but this type is the only one that can
interoperate with other SIP clients or with non-flexisip SIP proxies.
ChatRoom. Can be created with
Core.createDefaultChatRoomParams(). You can useisValid() to check if your configuration is valid or not.If the
ChatRoom backend is {@link ChatRoom#Backend#Basic}, then noother parameter is required, but
ChatMessage sent and received won'tbenefit from all features a {@link ChatRoom#Backend#FlexisipChat} can offer
like conversation with multiple participants and a subject, end-to-end
encryption, ephemeral messages, etc... but this type is the only one that can
interoperate with other SIP clients or with non-flexisip SIP proxies.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.20/05/2024.Deprecated.20/05/2024.longDeprecated.20/05/2024.Deprecated.20/05/2024.longGets the native pointer used by this class to make native method calls.Deprecated.20/05/2024.Gets the object stored in this object user's databooleanDeprecated.20/05/2024.booleanDeprecated.20/05/2024.booleanDeprecated.20/05/2024.booleanisValid()Deprecated.20/05/2024.voidsetBackend(ChatRoom.Backend backend) Deprecated.20/05/2024.voidDeprecated.20/05/2024.voidsetEncryptionEnabled(boolean encrypted) Deprecated.20/05/2024.voidsetEphemeralLifetime(long time) Deprecated.20/05/2024.voidDeprecated.20/05/2024.voidsetGroupEnabled(boolean group) Deprecated.20/05/2024.voidsetRttEnabled(boolean rtt) Deprecated.20/05/2024.voidsetSubject(String subject) Deprecated.20/05/2024.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getBackend
Deprecated.20/05/2024. UseChatParams.getBackend()instead.Get the backend implementation of the chat room associated with the given
parameters.
- Returns:
- the
ChatRoom#Backend
-
setBackend
Deprecated.20/05/2024. UseChatParams.setBackend(org.linphone.core.ChatRoom.Backend)instead.Set the backend implementation of these chat room parameters.
- Parameters:
backend- TheChatRoom#Backendenum value
-
getEncryptionBackend
Deprecated.20/05/2024. UseChatParams.getEncryptionBackend()instead.Get the encryption implementation of the chat room associated with the given
parameters.
- Returns:
- the
ChatRoom#EncryptionBackend
-
setEncryptionBackend
Deprecated.20/05/2024. UseChatParams.setEncryptionBackend(org.linphone.core.ChatRoom.EncryptionBackend)instead.Set the encryption backend implementation of these chat room parameters.
- Parameters:
backend- TheChatRoom#EncryptionBackendenum value
-
isEncryptionEnabled
Deprecated.20/05/2024. UseChatParams#encryptionEnabledinstead.Get the encryption status of the chat room associated with the given
parameters.
- Returns:
- true if encryption is enabled, false otherwise
-
setEncryptionEnabled
Deprecated.20/05/2024. Use linphone_conference_params_enable_encryption()
instead.Enables or disables encryption for the chat room associated with the given
parameters.
- Parameters:
encrypted- true to enable encryption, false to disable.
-
getEphemeralLifetime
Deprecated.20/05/2024. UseChatParams.getEphemeralLifetime()instead.Get lifetime (in seconds) for all new ephemeral messages in the chat room.
After the message is read, it will be deleted after "time" seconds. see:
linphone_chat_room_params_ephemeral_enabled()- Returns:
- the ephemeral lifetime (in seconds)
-
setEphemeralLifetime
Deprecated.20/05/2024. UseChatParams.setEphemeralLifetime(long)instead.Set lifetime (in seconds) for all new ephemral messages in the chat room.
After the message is read, it will be deleted after "time" seconds. see:
linphone_chat_room_params_ephemeral_enabled()- Parameters:
time- The ephemeral lifetime, default is disabled (0)
-
getEphemeralMode
Deprecated.20/05/2024. UseChatParams.getEphemeralMode()instead.Get the ephemeral message mode of the chat room associated with the given
parameters.
- Returns:
- the ephemeral message mode
ChatRoom#EphemeralMode
-
setEphemeralMode
Deprecated.20/05/2024. UseChatParams.setEphemeralMode(org.linphone.core.ChatRoom.EphemeralMode)instead.Enables or disables forcing of ephemeral messages for the chat room associated
with the given parameters.
- Parameters:
mode- Ephemeral message modeChatRoom#EphemeralMode.
-
isGroupEnabled
Deprecated.20/05/2024. UseConferenceParams#groupEnabledinstead.Get the group chat status of the chat room associated with the given
parameters.
- Returns:
- true if group chat is enabled, false if one-to-one
-
setGroupEnabled
Deprecated.20/05/2024. UseConferenceParams#enableGroupinstead.Enables or disables group chat for the chat room associated with the given
parameters.
- Parameters:
group- true to enable group chat, false to disable (resulting in
one-to-one chat room)
-
isValid
Deprecated.20/05/2024. Use linphone_chat_params_is_valid() instead.Returns whether the given parameters are valid or not.
- Returns:
- true if the given parameters are valid, false otherwise
-
isRttEnabled
Deprecated.20/05/2024. UseChatParams#rttEnabledinstead.Get the real time text status of the chat room associated with the given
parameters.
- Returns:
- true if real time text is enabled, false otherwise
-
setRttEnabled
Deprecated.20/05/2024. UseChatParams#enableRttinstead.Enables or disables real time text for the chat room associated with the given
parameters.
- Parameters:
rtt- true to enable real time text, false to disable.
-
getSubject
Deprecated.20/05/2024. UseConferenceParams.getSubject()instead.Get the subject of the chat room.
- Returns:
- The subject.
-
setSubject
Deprecated.20/05/2024. UseConferenceParams.setSubject(java.lang.String)instead.Set the subject of the chat room.
- Parameters:
subject- The subject to set.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-