Class Notification

Bildirim

Kullanıcıya bir kullanıcı arayüzü öğesiyle etkileşime girmesine yanıt olarak gösterilen bildirim.

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

Yöntemler

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

Ayrıntılı belgeler

setText(text)

Bildirimde gösterilecek metni ayarlar. Zorunlu.

Parametreler

AdTürAçıklama
textStringBildirim metni.

Return

Notification: Zincirleme için kullanılan bu nesne.