Class ActionResponse

AktionAntwort

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

MethodeRückgabetypKurzbeschreibung
printJson()StringGibt die JSON-Darstellung dieses Objekts aus.

Detaillierte Dokumentation

printJson()

Gibt die JSON-Darstellung dieses Objekts aus. Dies dient nur zur Fehlerbehebung.

Rückflug

String