Class Notification

通知

使用者提交並關閉對話方塊時,系統會顯示通知。

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

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

方法

方法傳回類型簡短說明
setText(text)Notification設定要在通知中顯示的文字。

內容詳盡的說明文件

setText(text)

設定要在通知中顯示的文字。必要欄位。

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

參數

名稱類型說明
textString通知文字。

回攻員

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