Class Notification

알림

UI 요소와 상호작용한 것에 대한 응답으로 사용자에게 표시되는 알림입니다.

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

메서드

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

자세한 문서

setText(text)

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

매개변수

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

리턴

Notification: 연결을 위한 객체입니다.