DialogEventType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
CARD_CLICKEDandMESSAGEevents provide insights into user interactions with dialogs in Google Chat apps.These events utilize specific enums like
REQUEST_DIALOG,SUBMIT_DIALOG, andCANCEL_DIALOGto indicate user actions within the dialog.REQUEST_DIALOGsignifies opening a dialog,SUBMIT_DIALOGrepresents submitting information, andCANCEL_DIALOGdenotes closing without submission.The
CANCEL_DIALOGevent 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_UNSPECIFIED | Default value. Unspecified. |
REQUEST_DIALOG | A user opens a dialog. |
SUBMIT_DIALOG | A 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_DIALOG | A 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.