Enum Interaction
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Interaktion
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. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]