Enum Interaction
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Etkileşim
Kullanıcıyla etkileşime yanıt olarak ne yapılacağını belirten bir enum türü (ör. kullanıcının kart mesajındaki bir düğmeyi tıklaması).
Yalnızca Google Chat uygulamaları için kullanılabilir. Google Workspace eklentilerinde kullanılamaz.
Bir enum'u çağırmak için üst sınıfını, adını ve özelliğini çağırırsınız. Örneğin,
CardService.Interaction.OPEN_DIALOG
.
Özellikler
Mülk | Tür | Açıklama |
INTERACTION_UNSPECIFIED | Enum | Varsayılan değer. action normal şekilde yürütülür. |
OPEN_DIALOG | Enum | Chat uygulamalarının kullanıcılarla etkileşim kurmak için kullandığı kart tabanlı bir arayüz olan iletişim kutusunu açar. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eInteraction\u003c/code\u003e is an enum type used to define how a Google Chat app responds to user actions, like clicking a button.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is exclusive to Google Chat apps and is not supported in Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize an enum, you need to reference its parent class, name, and property, such as \u003ccode\u003eCardService.Interaction.OPEN_DIALOG\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInteraction\u003c/code\u003e includes properties like \u003ccode\u003eOPEN_DIALOG\u003c/code\u003e for opening card-based interfaces and \u003ccode\u003eINTERACTION_UNSPECIFIED\u003c/code\u003e for default actions.\u003c/p\u003e\n"]]],["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"],null,["# Enum Interaction\n\nInteraction\n\nAn enum type that specifies what to do in response to an interaction with a user, such as a user\nclicking a button in a card message.\n\nOnly available for Google Chat apps. Not available for Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.Interaction.OPEN_DIALOG`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------------------|--------|-----------------------------------------------------------------------------------|\n| `INTERACTION_UNSPECIFIED` | `Enum` | Default value. The `action` executes as normal. |\n| `OPEN_DIALOG` | `Enum` | Opens a dialog, a card-based interface that Chat apps use to interact with users. |"]]