定義不涉及評估的動作,例如更新小工具顯示狀態。舉例來說,您可以根據輸入值,顯示或隱藏小工具,做為 CEL 驗證的一部分。
僅適用於透過 Gemini Alpha 計畫取得的 Google Workspace 外掛程式,可擴充 Google Workspace Flows。
const commonWidgetAction = CardService.newCommonWidgetAction() .setUpdateVisibilityAction(CardService.Visibility.VISIBLE);
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
set | Common | 設定小工具的更新瀏覽權限動作。 |
內容詳盡的說明文件
set Update Visibility Action(updateVisibilityAction)
設定小工具的更新瀏覽權限動作。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
update | Update | 更新瀏覽權限動作。 |
回攻員
Common - 鏈結用的 CommonWidgetAction。