Class Notification

Notification

Displays a notification when users submit and close a dialog.

Available for Google Workspace add-ons that extend Google Chat.

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

Methods

MethodReturn typeBrief description
setText(text)NotificationSets the text to show in the notification.

Detailed documentation

setText(text)

Sets the text to show in the notification. Required.

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

Parameters

NameTypeDescription
textStringThe notification text.

Return

Notification — This object, for chaining.