插件可在卡片或宿主应用中使用的操作。
适用于扩展 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();
方法
| 方法 | 返回类型 | 简介 |
|---|---|---|
print | String | 输出此对象的 JSON 表示形式。 |
详细文档
print Json()
输出此对象的 JSON 表示形式。此属性仅用于调试。
返回
String