Class Notification

Notification

Affiche une notification lorsque les utilisateurs envoient et ferment une boîte de dialogue.

Disponible pour les modules complémentaires Google Workspace qui étendent Google Chat.

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

Méthodes

MéthodeType renvoyéBrève description
setText(text)NotificationDéfinit le texte à afficher dans la notification.

Documentation détaillée

setText(text)

Définit le texte à afficher dans la notification. Obligatoire.

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

Paramètres

NomTypeDescription
textStringTexte de la notification.

Renvois

Notification : cet objet, pour le chaînage.