Ein enum-Typ, der angibt, was bei einer Interaktion mit einem Nutzer zu tun ist, z. B. wenn ein Nutzer auf eine Schaltfläche in einer Kartennachricht klickt.
Nur für Google Chat-Apps verfügbar. Nicht verfügbar für Google Workspace-Add-ons.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
CardService.Interaction.OPEN_DIALOG.
Attribute
Attribut
Typ
Beschreibung
INTERACTION_UNSPECIFIED
Enum
Standardwert. Die action wird wie gewohnt ausgeführt.
OPEN_DIALOG
Enum
Öffnet ein Dialogfeld, eine kartenbasierte Benutzeroberfläche, über die Chat-Apps mit Nutzern interagieren.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]