Class Action

動作

Google Workspace 外掛程式可使用這項動作擴充 Google Workspace Flows,以便顯示新卡片。

僅適用於透過 Gemini Alpha 計畫取得的 Google Workspace 外掛程式,可擴充 Google Workspace Flows。

const link = AddOnsResponseService.newLink().setUrl('https://www.google.com');
const action =
    AddOnsResponseService.newAction()
        .setLink(link);

const renderAction = AddOnsResponseService.newRenderActionBuilder().setAction(action).build();

方法

方法傳回類型簡短說明
addNavigation(navigation)Action在動作中新增資訊卡導覽。

內容詳盡的說明文件

addNavigation(navigation)

在動作中新增資訊卡導覽。

參數

名稱類型說明
navigationNavigation要使用的 Navigation

回攻員

Action - 這個物件,用於鏈結。

擲回

Error:如果導覽引數無效。