Rate this page:

Builder

This API is in beta and subject to change.

Class to create an instance of ConversationConfig.

Constructors

Builder

Copy URL
fun Builder(): 

Methods

title

Copy URL
fun title(title: 

String?

):

Builder

This API is in beta and subject to change.

Sets the conversation title.

It can be later changed via Conversation.title.

Parameters

  • title:

    String?

    Optional

    ConversationCore title

Returns

isDirect

Copy URL
fun isDirect(isDirect: 

Boolean

):

Builder

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

isPublicJoin

Copy URL
fun isPublicJoin(isPublicJoin: 

Boolean

):

Builder

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

isUber

Copy URL
fun isUber(isUber: 

Boolean

):

Builder

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

participants

Copy URL
fun participants(participants: 

List<ConversationParticipant>?

):

Builder

This API is in beta and subject to change.

Sets the conversation participants.

The participants list can be later changed via:

Parameters

Returns

customData

Copy URL
fun customData(customData: 

Map<String, Any>?

):

Builder

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>?

    Optional

    The conversation's custom data

Returns

build

Copy URL
fun build(): 

ConversationConfig

This API is in beta and subject to change.

Combines all of the options and return a new ConversationConfig object.

Returns