DialogEventType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
TYPE_UNSPECIFIED |
默认值。未指定。 |
REQUEST_DIALOG |
用户打开一个对话框。 |
SUBMIT_DIALOG |
用户点击对话框的互动元素。例如,用户在对话框中填写信息,然后点击按钮提交信息。 |
CANCEL_DIALOG |
用户关闭对话框,但不提交信息。只有当用户点击对话框右上角的关闭图标时,Chat 应用才会收到此互动事件。如果用户通过其他方式(例如刷新浏览器、点击对话框之外的区域或按下“Esc”键)关闭对话框,系统不会发送任何事件。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eCARD_CLICKED\u003c/code\u003e and \u003ccode\u003eMESSAGE\u003c/code\u003e events provide insights into user interactions with dialogs in Google Chat apps.\u003c/p\u003e\n"],["\u003cp\u003eThese events utilize specific enums like \u003ccode\u003eREQUEST_DIALOG\u003c/code\u003e, \u003ccode\u003eSUBMIT_DIALOG\u003c/code\u003e, and \u003ccode\u003eCANCEL_DIALOG\u003c/code\u003e to indicate user actions within the dialog.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eREQUEST_DIALOG\u003c/code\u003e signifies opening a dialog, \u003ccode\u003eSUBMIT_DIALOG\u003c/code\u003e represents submitting information, and \u003ccode\u003eCANCEL_DIALOG\u003c/code\u003e denotes closing without submission.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCANCEL_DIALOG\u003c/code\u003e event is only triggered when the user explicitly closes the dialog using the close icon, not through other methods like refreshing or clicking outside.\u003c/p\u003e\n"],["\u003cp\u003eFor further information on Google Chat app interactions, refer to the provided documentation link: \u003ca href=\"https://developers.google.com/workspace/chat/read-form-data\"\u003eReceive and respond to interactions with your Google Chat app\u003c/a\u003e.\u003c/p\u003e\n"]]],["The core content defines interaction event types related to dialogs within Google Chat apps. `REQUEST_DIALOG` signifies a user opening a dialog. `SUBMIT_DIALOG` indicates a user submitting information within a dialog. `CANCEL_DIALOG` represents a user closing a dialog via the close icon without submitting data. These events are triggered by `CARD_CLICKED` and `MESSAGE` actions, providing data about user interactions with dialogs. `TYPE_UNSPECIFIED` is a default value.\n"],null,["# DialogEventType\n\nFor `CARD_CLICKED` and `MESSAGE` interaction events, the types of interactions with [dialogs](https://developers.google.com/workspace/chat/dialogs).\n\nTo learn more about Google Chat app interaction events, see [Receive and respond to interactions with your Google Chat app](https://developers.google.com/workspace/chat/read-form-data).\n\n| Enums ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TYPE_UNSPECIFIED` | Default value. Unspecified. |\n| `REQUEST_DIALOG` | A user opens a dialog. |\n| `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. |\n| `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. |"]]