Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Enum Interaction
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
互動此列舉型別會指定在回應與使用者互動 (例如使用者點選資訊卡訊息中的按鈕) 時採取的動作。
僅適用於 Google Chat 應用程式。不適用於 Google Workspace 外掛程式。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
CardService.Interaction.OPEN_DIALOG。
屬性
| 屬性 | 類型 | 說明 |
INTERACTION_UNSPECIFIED | Enum | 預設值。action 會照常執行。 |
OPEN_DIALOG | Enum | 開啟對話方塊,這是 Chat 應用程式用來與使用者互動的卡片式介面。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-12-03 (世界標準時間)。
[null,null,["上次更新時間:2025-12-03 (世界標準時間)。"],[],["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"]]