AI-generated Key Takeaways
-
OnClose
is an enum used withinOpenLink
to specify an action taken when the opened URL is closed by the user. -
It offers options like
NOTHING
(default) andRELOAD
to reload the add-on upon closing the URL, withRELOAD
potentially blocking the main card if used withOpenAs.OVERLAY
. -
Although previously available, the
RELOAD_ADD_ON
option is now deprecated and should not be used in new developments.
An enum that specifies what to do when a URL opened through an Open
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. On
may cause Open
to be ignored; if the client platform cannot support both selected values together,
On
takes precedence.
To call an enum, you call its parent class, name, and property. For example,
CardService.OnClose.RELOAD
.
Properties
Property | Type | Description |
---|---|---|
NOTHING | Enum | Do nothing on close. Default. |
RELOAD | Enum | Reloads the add-on on when the window closes.
If |