Enum OnClose

  • OnClose is an enum used to specify what happens when a URL opened via OpenLink is closed.

  • Its behavior can depend on the client platform and may take precedence over OpenAs.

  • You access an OnClose enum value by calling its parent class, name, and property, such asCardService.OnClose.RELOAD.

  • Available properties include NOTHING (default) and RELOAD, which reloads the add-on on close.

OnClose

An enum that specifies what to do when a URL opened through anOpenLink is closed.

When a link is opened, the client either forgets about it or waits until the window is closed.The implementation depends on the client platform capabilities.OnClose may causeOpenAs 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.OnClose.RELOAD.

Properties

PropertyTypeDescription
NOTHINGEnumDo nothing on close. Default.
RELOADEnumReloads the add-on on when the window closes.

IfOpenAs.OVERLAY is also set, then the main card is blocked until the overlaywindow is closed and the add-on has finished reloading.

Deprecated properties

PropertyTypeDescription
RELOAD_ADD_ONEnumReload the add-on on closing the URL. This action differs fromRELOAD in that it doesnot block the main card while showing anOpenAs.OVERLAY window.

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.