Class Notification

通知

UI 要素の操作に対する応答としてユーザーに表示される通知。

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

Methods

メソッド戻り値の型概要
setText(text)Notification通知に表示するテキストを設定します。

詳細なドキュメント

setText(text)

通知に表示するテキストを設定します。必須。

パラメータ

名前説明
textString通知テキスト。

リターン

Notification - このオブジェクト(チェーン用)。