Enum DisplayStyle Stay organized with collections Save and categorize content based on your preferences.
An enum that defines the display style of card.
Display means that the card is shown by replacing the view of top card inthe card stack.
Display mean that the header of the card appears at the bottom of thesidebar, partially covering the current top card of the stack. Clicking the header pops the cardinto the card stack. If the card has no header, a generated header is used instead.
Display only works for card returned from contextual trigger function.
To call an enum, you call its parent class, name, and property. For example,CardService.DisplayStyle.PEEK.
Properties
| Property | Type | Description |
|---|---|---|
PEEK | Enum | Show the card header at the bottom of add-on content over existing content. |
REPLACE | Enum | Show the card by replacing existing content. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.