DialogEventType
Enum |
TYPE_UNSPECIFIED |
Nilai default. Tidak ditentukan. |
REQUEST_DIALOG |
Pengguna membuka dialog. |
SUBMIT_DIALOG |
Pengguna mengklik elemen interaktif dialog. Misalnya, pengguna mengisi informasi dalam dialog dan mengklik tombol untuk mengirimkan informasi tersebut. |
CANCEL_DIALOG |
Pengguna menutup dialog tanpa mengirimkan informasi. Aplikasi Chat hanya menerima peristiwa interaksi ini saat pengguna mengklik ikon tutup di sudut kanan atas dialog. Saat pengguna menutup dialog dengan cara lain (seperti memuat ulang browser, mengklik di luar kotak dialog, atau menekan tombol escape), tidak ada peristiwa yang dikirim. . |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-10-17 UTC.
[null,null,["Terakhir diperbarui pada 2024-10-17 UTC."],[[["`CARD_CLICKED` and `MESSAGE` events provide insights into user interactions with dialogs in Google Chat apps."],["These events utilize specific enums like `REQUEST_DIALOG`, `SUBMIT_DIALOG`, and `CANCEL_DIALOG` to indicate user actions within the dialog."],["`REQUEST_DIALOG` signifies opening a dialog, `SUBMIT_DIALOG` represents submitting information, and `CANCEL_DIALOG` denotes closing without submission."],["The `CANCEL_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](https://developers.google.com/workspace/chat/read-form-data)."]]],["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"]]