Enum Interaction
互动
枚举类型,用于指定如何响应与用户的互动,例如用户点击卡片消息中的按钮。
仅适用于 Google Chat 应用。不适用于 Google Workspace 插件。
如需调用枚举,您可以调用其父类、名称和属性。例如
CardService.Interaction.OPEN_DIALOG
。
属性
属性 | 类型 | 说明 |
INTERACTION_UNSPECIFIED | Enum | 默认值。action 会照常执行。 |
OPEN_DIALOG | Enum | 打开对话框,这是一种基于卡片的界面,Chat 应用会使用它与用户互动。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-30。
[null,null,["最后更新时间 (UTC):2025-01-30。"],[[["`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."]]],[]]