Enum Interaction
Interaksi
Jenis enum yang menentukan tindakan yang harus dilakukan sebagai respons terhadap interaksi dengan pengguna, seperti pengguna
mengklik tombol dalam pesan kartu.
Hanya tersedia untuk aplikasi Google Chat. Tidak tersedia untuk add-on Google Workspace.
Untuk memanggil enum, Anda memanggil class induk, nama, dan propertinya. Misalnya,
CardService.Interaction.OPEN_DIALOG
.
Properti
Properti | Jenis | Deskripsi |
INTERACTION_UNSPECIFIED | Enum | Nilai default. action dieksekusi seperti biasa. |
OPEN_DIALOG | Enum | Membuka dialog, antarmuka berbasis kartu yang digunakan aplikasi Chat untuk berinteraksi dengan pengguna. |
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 2025-01-30 UTC.
[null,null,["Terakhir diperbarui pada 2025-01-30 UTC."],[[["`Interaction` is an enum type used to define how a Google Chat app responds to user actions, like clicking a button."],["This feature is exclusive to Google Chat apps and is not supported in Google Workspace Add-ons."],["To utilize an enum, you need to reference its parent class, name, and property, such as `CardService.Interaction.OPEN_DIALOG`."],["`Interaction` includes properties like `OPEN_DIALOG` for opening card-based interfaces and `INTERACTION_UNSPECIFIED` for default actions."]]],["This content defines the `Interaction` enum for Google Chat apps, which dictates the app's response to user interactions. It's exclusive to Google Chat apps and unavailable for Google Workspace add-ons. The enum includes properties like `INTERACTION_UNSPECIFIED`, which executes the default action, and `OPEN_DIALOG`, which triggers a card-based dialog. To use these properties call it with its class name for example `CardService.Interaction.OPEN_DIALOG`.\n"]]