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