public static class

PreChatPickListField.Builder

extends Object
java.lang.Object
   ↳ com.salesforce.android.chat.ui.model.PreChatPickListField.Builder

Class Overview

Used to construct PreChatPickListField objects for presenting pick list options to the user during pre-chat.

Summary

Public Constructors
Builder()
Public Methods
PreChatPickListField.Builder addOption(PreChatPickListField.Option option)
Add an PreChatPickListField.Option to the PreChatPickListField to be displayed to the user for selection.
PreChatPickListField build(String displayLabel, String agentLabel)
Create a pick list pre-chat field with the specified configuration.
PreChatPickListField.Builder displayedToAgent(boolean isDisplayedToAgent)
Whether or not this field should be displayed to the agent in the Service Cloud Console.
PreChatPickListField.Builder initialValue(PreChatPickListField.Option initialValue)
Set the initial PreChatPickListField.Option selection of the field.
PreChatPickListField.Builder mapToChatTranscriptFieldName(String transcriptFieldName)
A Live Chat Transcript Custom Field that the selected PreChatPickListField.Option value will be applied to.
PreChatPickListField.Builder readOnly(boolean isReadOnly)
Declare that the value shouldn't be changed.
PreChatPickListField.Builder required(boolean required)
Declare that the field must have a value set in order to pass validation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public PreChatPickListField.Builder addOption (PreChatPickListField.Option option)

Add an PreChatPickListField.Option to the PreChatPickListField to be displayed to the user for selection.

public PreChatPickListField build (String displayLabel, String agentLabel)

Create a pick list pre-chat field with the specified configuration.

public PreChatPickListField.Builder displayedToAgent (boolean isDisplayedToAgent)

Whether or not this field should be displayed to the agent in the Service Cloud Console. Default value is true.

public PreChatPickListField.Builder initialValue (PreChatPickListField.Option initialValue)

Set the initial PreChatPickListField.Option selection of the field.

public PreChatPickListField.Builder mapToChatTranscriptFieldName (String transcriptFieldName)

A Live Chat Transcript Custom Field that the selected PreChatPickListField.Option value will be applied to. More than one may be specified.

public PreChatPickListField.Builder readOnly (boolean isReadOnly)

Declare that the value shouldn't be changed. Fields which are marked as read only will ignore values passed to setValue(CharSequence).

public PreChatPickListField.Builder required (boolean required)

Declare that the field must have a value set in order to pass validation.