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

방법

메서드반환 유형간략한 설명
setText(text)Notification알림에 표시할 텍스트를 설정합니다.

자세한 문서

setText(text)

알림에 표시할 텍스트를 설정합니다. 필수 항목입니다.

매개변수

이름유형설명
textString알림 텍스트입니다.

리턴

Notification - 체이닝용 객체입니다.