Class Card

卡片

一种上下文卡片,表示界面中的单个视图。

const cardSection = CardService.newCardSection();
// Finish building the card section ...

const card = CardService.newCardBuilder()
                 .setName('Card name')
                 .setHeader(CardService.newCardHeader().setTitle('Card title'))
                 .addSection(cardSection)
                 .build();

方法

方法返回值类型简介
printJson()String输出此对象的 JSON 表示法。

详细文档

printJson()

输出此对象的 JSON 表示法。此方法仅用于调试。

返回

String