Class ActionResponse

動作回應

外掛程式可在資訊卡或主機應用程式中執行的動作。

適用於擴充 Google Chat 的 Google Workspace 外掛程式。

const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");

const navigation = AddOnsResponseService.newNavigation()
    .setEndNavigation(AddOnsResponseService.EndNavigation.CLOSE_DIALOG);

// An action that closes the dialog and shows a notification.
const action = AddOnsResponseService.newActionResponseBuilder()
    .setNavigation(navigation)
    .setNotification(notification)
    .build();

方法

方法傳回類型簡短說明
printJson()String列印這個物件的 JSON 表示法。

內容詳盡的說明文件

printJson()

列印這個物件的 JSON 表示法。這項設定僅適用於偵錯。

回攻員

String