DialogEventType

  • CARD_CLICKED andMESSAGE events provide insights into user interactions with dialogs in Google Chat apps.

  • These events utilize specific enums likeREQUEST_DIALOG,SUBMIT_DIALOG, andCANCEL_DIALOG to indicate user actions within the dialog.

  • REQUEST_DIALOG signifies opening a dialog,SUBMIT_DIALOG represents submitting information, andCANCEL_DIALOG denotes closing without submission.

  • TheCANCEL_DIALOG event is only triggered when the user explicitly closes the dialog using the close icon, not through other methods like refreshing or clicking outside.

  • For further information on Google Chat app interactions, refer to the provided documentation link:Receive and respond to interactions with your Google Chat app.

ForCARD_CLICKED andMESSAGE interaction events, the types of interactions withdialogs.

To learn more about Google Chat app interaction events, seeReceive and respond to interactions with your Google Chat app.

Enums
TYPE_UNSPECIFIEDDefault value. Unspecified.
REQUEST_DIALOGA user opens a dialog.
SUBMIT_DIALOGA user clicks an interactive element of a dialog. For example, a user fills out information in a dialog and clicks a button to submit the information.
CANCEL_DIALOGA user closes a dialog without submitting information. The Chat app only receives this interaction event when users click the close icon in the top right corner of the dialog. When the user closes the dialog by other means (such as refreshing the browser, clicking outside the dialog box, or pressing the escape key), no event is sent.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-30 UTC.