Package com.zopim.android.sdk.prechat
Class PreChatForm.Builder
- java.lang.Object
-
- com.zopim.android.sdk.prechat.PreChatForm.Builder
-
- Enclosing class:
- PreChatForm
public static class PreChatForm.Builder extends java.lang.Object
Builds pre chat form with default of hidden if not specified
-
-
Constructor Summary
Constructors Constructor and Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PreChatForm
build()
Builds pre chat form instance with specified configurationPreChatForm.Builder
department(PreChatForm.Field field)
Configures department fieldPreChatForm.Builder
email(PreChatForm.Field field)
Configures email fieldPreChatForm.Builder
message(PreChatForm.Field field)
Configures message fieldPreChatForm.Builder
name(PreChatForm.Field field)
Configures name fieldPreChatForm.Builder
phoneNumber(PreChatForm.Field field)
Configures phone number field
-
-
-
Method Detail
-
name
public PreChatForm.Builder name(PreChatForm.Field field)
Configures name field- Parameters:
field
- configuration- Returns:
- builder
-
email
public PreChatForm.Builder email(PreChatForm.Field field)
Configures email field- Parameters:
field
- configuration- Returns:
- builder
-
phoneNumber
public PreChatForm.Builder phoneNumber(PreChatForm.Field field)
Configures phone number field- Parameters:
field
- configuration- Returns:
- builder
-
department
public PreChatForm.Builder department(PreChatForm.Field field)
Configures department field- Parameters:
field
- configuration- Returns:
- builder
-
message
public PreChatForm.Builder message(PreChatForm.Field field)
Configures message field- Parameters:
field
- configuration- Returns:
- builder
-
build
public PreChatForm build()
Builds pre chat form instance with specified configuration- Returns:
- pre chat form
-
-