Class Notification

התראה

התראה שמוצגת למשתמש בתגובה לאינטראקציה עם רכיב בממשק המשתמש.

const action = CardService.newAction().setFunctionName('notificationCallback'); CardService.newTextButton().setText('Save').setOnClickAction(action);  // ...  function notificationCallback() {   return CardService.newActionResponseBuilder()       .setNotification(           CardService.newNotification().setText('Some info to display to user'),           )       .build(); }

Methods

שיטהסוג הערך המוחזרתיאור קצר
setText(text)Notificationהגדרת הטקסט שיוצג בהתראה.

מסמכים מפורטים

setText(text)

הגדרת הטקסט שיוצג בהתראה. חובה.

פרמטרים

שםסוגתיאור
textStringטקסט ההתראה.

חזרה

Notification – האובייקט הזה, לצורך קישור.