Enum Interaction
Interazione
Un tipo di enum che specifica cosa fare in risposta a un'interazione con un utente, ad esempio un clic su un pulsante in un messaggio della scheda.
Disponibile solo per le app Google Chat. Non disponibile per i componenti aggiuntivi di Google Workspace.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
CardService.Interaction.OPEN_DIALOG
.
Proprietà
Proprietà | Tipo | Descrizione |
INTERACTION_UNSPECIFIED | Enum | Valore predefinito. action viene eseguito normalmente. |
OPEN_DIALOG | Enum | Apre una finestra di dialogo, un'interfaccia basata su schede utilizzata dalle app di Chat per interagire con gli utenti. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-01-30 UTC.
[null,null,["Ultimo aggiornamento 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"]]