java.lang.Object | |
↳ | com.salesforce.android.chat.ui.model.PreChatPickListField.Builder |
Used to construct PreChatPickListField
objects for presenting pick list options to the
user during pre-chat.
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
|
Add an PreChatPickListField.Option
to the PreChatPickListField
to be displayed to the user for
selection.
Create a pick list pre-chat field with the specified configuration.
Whether or not this field should be displayed to the agent in the Service Cloud Console. Default value is true.
Set the initial PreChatPickListField.Option
selection of the field.
A Live Chat Transcript Custom Field that the selected PreChatPickListField.Option
value will be applied to. More than one may be specified.
Declare that the value shouldn't be changed. Fields which are marked as read only
will ignore values passed to setValue(CharSequence)
.
Declare that the field must have a value set in order to pass validation.