Rate this page:

ConversationConfigBuilder

Builder for ConversationConfig.

Methods

build

Copy URL

ConversationConfig

build()

Creates and returns the ConversationConfig object this builder represents.

Returns

setCustomData

Copy URL

ConversationConfigBuilder

setCustomData(

Map<String, Object>

customData
)

Specifies 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
)

Sets the conversation as direct or not (see ConversationConfig.isDirect()).

A direct conversation cannot be uber and/or public.

Parameters

  • direct:

    boolean

setParticipants

Copy URL

ConversationConfigBuilder

setParticipants(

List<ConversationParticipant>

participants
)

Sets the conversation's participants.

The participants list can be later changed via:

Parameters

setPublicJoin

Copy URL

ConversationConfigBuilder

setPublicJoin(

boolean

publicJoin
)

Sets the conversation as public or not.

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

A public conversation cannot be direct.

Parameters

  • publicJoin:

    boolean

    Whether anyone can join the conversation by UUID

setTitle

Copy URL

ConversationConfigBuilder

setTitle(

String

title
)

Sets the conversation title.

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

Parameters

  • title:

    String

    Conversation title

setUber

Copy URL

ConversationConfigBuilder

setUber(

boolean

isUber
)

Sets the conversation as uber or not.

Users in a uber conversation cannot retrieve messages that have been posted to the conversation after they quit.

A uber conversation cannot be direct.

Parameters

  • isUber:

    boolean

    Whether conversation restricts access to messages.