BoldChatSession.ChatFormListener
com.boldchat.sdk
Interface BoldChatSession.ChatFormListener
-
- Enclosing class:
- BoldChatSession
public static interface BoldChatSession.ChatFormListener
Callback that will be called before a form is shown. This will give the listener an opportunity to pre-fill field values, hide fields, or prevent the form from showing entirely.
-
-
Method Detail
-
onFormShow
boolean onFormShow(Form form)
Method that is called before a form is shown.- Parameters:
form
- The form that will be shown. To set a value for the field you can useFormField.setValue(String)
, or to hide the field useFormField.setVisible(boolean)
- Returns:
- Return true to show continue showing the form, or false to prevent showing the form.
-
-