使用者提交並關閉對話方塊時,系統會顯示通知。
適用於擴充 Google Chat 的 Google Workspace 外掛程式。
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
set | Notification | 設定要在通知中顯示的文字。 |
內容詳盡的說明文件
set Text(text)
設定要在通知中顯示的文字。必要欄位。
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
text | String | 通知文字。 |
回攻員
Notification - 這個物件,用於鏈結。