Class Notification

Bildirim

Bir kullanıcı arayüzü öğesiyle etkileşimde bulunmaya yanıt olarak kullanıcıya gösterilen bildirim.

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

Yöntemler

YöntemDönüş türüKısa açıklama
setText(text)NotificationMetni bildirimde gösterilecek şekilde ayarlar.

Ayrıntılı belgeler

setText(text)

Metni bildirimde gösterilecek şekilde ayarlar. Zorunlu.

Parametreler

AdTürAçıklama
textStringBildirim metni.

Return

Notification: Zincirleme için bu nesne.