Enum OpenAs
OpenAs
An enum that specifies how to open a URL.
The client can open a URL as either a full size window (if that is the frame used by the
client), or an overlay (such as a pop-up). The implementation depends on the client platform
capabilities, and the value selected may be ignored if the client does not support it. FULL_SIZE
is supported by all clients.
Using OnClose
may cause OpenAs
to be ignored; if the client platform cannot
support both selected values together, OnClose
takes precedence.
To call an enum, you call its parent class, name, and property. For example,
CardService.OpenAs.FULL_SIZE
.
Properties
Property | Type | Description |
FULL_SIZE | Enum | Open in a full window or tab. Default. |
OVERLAY | Enum | Open as an overlay such as a pop-up. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["`OpenAs` is an enum used to specify how a URL should be opened by the client, either as a full-size window or an overlay."],["While `FULL_SIZE` is supported by all clients, `OVERLAY` support depends on the client platform and might be ignored."],["Using `OnClose` may take precedence over `OpenAs`, potentially causing the chosen opening method to be disregarded if the client platform has limitations."],["To utilize this enum in your code, use the syntax: `CardService.OpenAs.FULL_SIZE` or `CardService.OpenAs.OVERLAY`."]]],[]]