Builder
This API is in beta and subject to change.
Class to create an instance of ConversationConfig.
Constructors
Builder
fun Builder():
Methods
title
fun title(title: String?
):
This API is in beta and subject to change.
Sets the conversation title.
It can be later changed via Conversation.title.
Parameters
title:
String?
OptionalConversationCore title
Returns
type:
isDirect
fun isDirect(isDirect: Boolean
):
This API is in beta and subject to change.
Sets the conversation to be direct or not.
A direct conversation cannot be uber and/or public.
Parameters
isDirect:
Boolean
Whether to set the conversation to direct
Returns
type:
isPublicJoin
fun isPublicJoin(isPublicJoin: Boolean
):
This API is in beta and subject to change.
Sets the conversation to be public or not.
It can be later changed via Conversation.isPublicJoin.
A public conversation cannot be direct.
Parameters
isPublicJoin:
Boolean
Whether anyone can join the conversation by UUID
Returns
type:
isUber
fun isUber(isUber: Boolean
):
This API is in beta and subject to change.
Sets the conversation to be uber or not.
Users in a uber conversation are not able to retrieve messages that are posted to the conversation after they quit.
A uber conversation cannot be direct.
Parameters
isUber:
Boolean
Whether the conversation restricts access to messages
Returns
type:
participants
fun participants(participants: List<ConversationParticipant>?
):
This API is in beta and subject to change.
Sets the conversation participants.
The participants list can be later changed via:
Parameters
participants:
List<ConversationParticipant>?
OptionalList of participants
Returns
type:
customData
fun customData(customData: Map<String, Any>?
):
This API is in beta and subject to change.
Specifies the custom data of the conversation (up to 5kb).
The custom data can be later changed via Conversation.customData.
Parameters
customData:
Map<String, Any>?
OptionalThe conversation's custom data
Returns
type:
build
fun build():
This API is in beta and subject to change.
Combines all of the options and return a new ConversationConfig object.
Returns
type: