Class Notification

सूचना

यूज़र इंटरफ़ेस (यूआई) एलिमेंट के साथ इंटरैक्ट करने के जवाब के तौर पर, उपयोगकर्ता को दिखने वाली सूचना.

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

तरीके

तरीकारिटर्न टाइपसंक्षिप्त विवरण
setText(text)Notificationसूचना में दिखाने के लिए टेक्स्ट सेट करता है.

ज़्यादा जानकारी के साथ दस्तावेज़

setText(text)

सूचना में दिखाने के लिए टेक्स्ट सेट करता है. ज़रूरी है.

पैरामीटर

नामTypeब्यौरा
textStringसूचना का टेक्स्ट.

रिटर्न

Notification — यह ऑब्जेक्ट, चेन करने के लिए है.