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éthode | Type renvoyé | Brève description |
|---|---|---|
set | Notification | Définit le texte à afficher dans la notification. |
Documentation détaillée
set Text(text)
Définit le texte à afficher dans la notification. Obligatoire.
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!");
Paramètres
| Nom | Type | Description |
|---|---|---|
text | String | Texte de la notification. |
Renvois
Notification : cet objet, pour le chaînage.