Class ActionResponse

פעולהתגובה

הפעולות שתוספים יכולים לבצע בכרטיסים או באפליקציית המארח.

האפשרות הזו זמינה לתוספים ל-Google Workspace שמרחיבים את Google Chat.

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();

Methods

שיטהסוג הערך שמוחזרתיאור קצר
printJson()Stringהפונקציה מדפיסה את הייצוג של האובייקט ב-JSON.

תיעוד מפורט

printJson()

הפונקציה מדפיסה את הייצוג של האובייקט ב-JSON. הפעולה הזו מיועדת לניפוי באגים בלבד.

חזרה

String