Die Aktionen, die Add-ons in Karten oder der Hostanwendung verwenden können.
Verfügbar für Google Workspace-Add‑ons, die Google Chat erweitern.
const notification = AddOnsResponseService.newNotification().setText("You closed a dialog!"); const navigation = AddOnsResponseService.newNavigation() .setEndNavigation(AddOnsResponseService.EndNavigation.CLOSE_DIALOG); // An action that closes the dialog and shows a notification. const action = AddOnsResponseService.newActionResponseBuilder() .setNavigation(navigation) .setNotification(notification) .build();
Methoden
| Methode | Rückgabetyp | Kurzbeschreibung |
|---|---|---|
print | String | Gibt die JSON-Darstellung dieses Objekts aus. |
Detaillierte Dokumentation
print Json()
Gibt die JSON-Darstellung dieses Objekts aus. Dies dient nur zur Fehlerbehebung.
Rückflug
String