Class Card
کارت یک کارت زمینه که نمایانگر یک نمای واحد در رابط کاربری است.
var cardSection = CardService.newCardSection();
// Finish building the card section ...
var card = CardService.newCardBuilder()
.setName("Card name")
.setHeader(CardService.newCardHeader().setTitle("Card title"))
.addSection(cardSection)
.build();
روش ها
روش | نوع برگشت | شرح مختصر |
---|
printJson() | String | نمایش JSON این شی را چاپ می کند. |
مستندات دقیق
printJson()
نمایش JSON این شی را چاپ می کند. این فقط برای رفع اشکال است.
بازگشت
String
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["Cards provide single views in the UI and are built using sections."],["Cards can have names, headers, and sections added."],["A `printJson()` method is available for debugging the card's JSON representation."]]],["A `Card` is a UI element representing a single view, built using `CardService`. The process involves creating a `CardSection`, then a `Card` builder. The builder sets the `Card`'s name, header, and adds the `CardSection`. Finally, the `Card` is built. The `printJson()` method returns a JSON string representation of the `Card` for debugging. This method is intended for debugging purposes only.\n"]]