Bold360 and BoldChat Developer Center

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 Summary

      Methods 
      Modifier and Type Method and Description
      boolean onFormShow(Form form)
      Method that is called before a form is shown.
    • 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 use FormField.setValue(String), or to hide the field use FormField.setVisible(boolean)
        Returns:
        Return true to show continue showing the form, or false to prevent showing the form.