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.Deprecated.longDeprecated.Deprecated.longGets the native pointer used by this class to make native method calls.Deprecated.Gets the object stored in this object user's databooleanDeprecated.booleanDeprecated.booleanDeprecated.booleanisValid()Deprecated.voidsetBackend(ChatRoom.Backend backend) Deprecated.voidDeprecated.voidsetEncryptionEnabled(boolean encrypted) Deprecated.voidsetEphemeralLifetime(long time) Deprecated.voidDeprecated.voidsetGroupEnabled(boolean group) Deprecated.voidsetRttEnabled(boolean rtt) Deprecated.voidsetSubject(String subject) Deprecated.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getBackend
Deprecated.Get the backend implementation of the chat room associated with the given
parameters.
- Returns:
- the
ChatRoom#Backend
deprecated: 20/05/2024. UseChatParams.getBackend()instead.
-
setBackend
Deprecated.Set the backend implementation of these chat room parameters.
- Parameters:
backend- TheChatRoom#Backendenum value
deprecated: 20/05/2024. UseChatParams.setBackend(org.linphone.core.ChatRoom.Backend)instead.
-
getEncryptionBackend
Deprecated.Get the encryption implementation of the chat room associated with the given
parameters.
- Returns:
- the
ChatRoom#EncryptionBackend
deprecated: 20/05/2024. UseChatParams.getEncryptionBackend()instead.
-
setEncryptionBackend
Deprecated.Set the encryption backend implementation of these chat room parameters.
- Parameters:
backend- TheChatRoom#EncryptionBackendenum value
deprecated: 20/05/2024. UseChatParams.setEncryptionBackend(org.linphone.core.ChatRoom.EncryptionBackend)instead.
-
isEncryptionEnabled
Deprecated.Get the encryption status of the chat room associated with the given
parameters.
- Returns:
- true if encryption is enabled, false otherwise
deprecated: 20/05/2024. UseChatParams#encryptionEnabledinstead.
-
setEncryptionEnabled
Deprecated.Enables or disables encryption for the chat room associated with the given
parameters.
- Parameters:
encrypted- true to enable encryption, false to disable.
deprecated: 20/05/2024. Use linphone_conference_params_enable_encryption()
instead.
-
getEphemeralLifetime
Deprecated.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)
deprecated: 20/05/2024. UseChatParams.getEphemeralLifetime()instead.
-
setEphemeralLifetime
Deprecated.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)
deprecated: 20/05/2024. UseChatParams.setEphemeralLifetime(long)instead.
-
getEphemeralMode
Deprecated.Get the ephemeral message mode of the chat room associated with the given
parameters.
- Returns:
- the ephemeral message mode
ChatRoom#EphemeralMode
deprecated: 20/05/2024. UseChatParams.getEphemeralMode()instead.
-
setEphemeralMode
Deprecated.Enables or disables forcing of ephemeral messages for the chat room associated
with the given parameters.
- Parameters:
mode- Ephemeral message modeChatRoom#EphemeralMode.
deprecated: 20/05/2024. UseChatParams.setEphemeralMode(org.linphone.core.ChatRoom.EphemeralMode)instead.
-
isGroupEnabled
Deprecated.Get the group chat status of the chat room associated with the given
parameters.
- Returns:
- true if group chat is enabled, false if one-on-one
deprecated: 20/05/2024. UseConferenceParams#groupEnabledinstead.
-
setGroupEnabled
Deprecated.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-on-one chat room)
deprecated: 20/05/2024. UseConferenceParams#enableGroupinstead.
-
isValid
Deprecated.Returns whether the given parameters are valid or not.
- Returns:
- true if the given parameters are valid, false otherwise
deprecated: 20/05/2024. UseConferenceParams.isValid()instead.
-
isRttEnabled
Deprecated.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
deprecated: 20/05/2024. UseChatParams#rttEnabledinstead.
-
setRttEnabled
Deprecated.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.
deprecated: 20/05/2024. UseChatParams#enableRttinstead.
-
getSubject
Deprecated.Get the subject of the chat room.
- Returns:
- The subject.
deprecated: 20/05/2024. UseConferenceParams.getSubject()instead.
-
setSubject
Deprecated.Set the subject of the chat room.
- Parameters:
subject- The subject to set.
deprecated: 20/05/2024. UseConferenceParams.setSubject(java.lang.String)instead.
-
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()
-