Rate this page:

ConversationConfigBuilder

Builder for ConversationConfig.

Methods

build

Copy URL

ConversationConfig

build()

Create and returns the ConversationConfig object this builder represents.

Returns

setCustomData

Copy URL

ConversationConfigBuilder

setCustomData(

Map<String, Object>

customData
)

Specify a custom data of the conversation (up to 5kb).

The custom data can be later changed via IConversation.setCustomData(Map).

Parameters

  • customData:

    Map<String, Object>

    Custom data

setDirect

Copy URL

ConversationConfigBuilder

setDirect(

boolean

direct
)

Set if the conversation is direct (see ConversationConfig.isDirect()).

A direct conversation can't be uber and/or public.

Parameters

  • direct:

    boolean

setParticipants

Copy URL

ConversationConfigBuilder

setParticipants(

List<ConversationParticipant>

participants
)

Parameters

setPublicJoin

Copy URL

ConversationConfigBuilder

setPublicJoin(

boolean

publicJoin
)

Set the conversation to be public or not.

It can be later changed via IConversation.setPublicJoin(boolean).

A public conversation can't be direct.

Parameters

  • publicJoin:

    boolean

    If true, anyone can join the conversation by UUID

setTitle

Copy URL

ConversationConfigBuilder

setTitle(

String

title
)

Set the conversation title.

It can be later changed via IConversation.setTitle(String).

Parameters

  • title:

    String

    Conversation title

setUber

Copy URL

ConversationConfigBuilder

setUber(

boolean

isUber
)

Set if the conversation is a uber conversation.

Users in a uber conversation will not be able to retrieve messages that were posted to the conversation after they quit.

A uber conversation can't be direct.

Parameters

  • isUber:

    boolean

    If true, conversation will restrict access to messages.