Stay organized with collections
Save and categorize content based on your preferences.
OnClose
An enum that specifies what to do when a URL opened through an OpenLink 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 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.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 OpenAs.OVERLAY is also set, then the main card is blocked until the overlay
window is closed and the add-on has finished reloading.
Deprecated properties
Property
Type
Description
RELOAD_ADD_ON
Enum
Reload the add-on on closing the URL. This action differs from RELOAD in that it does
not block the main card while showing an OpenAs.OVERLAY window.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-01 UTC."],[[["`OnClose` is an enum used within `OpenLink` to specify an action taken when the opened URL is closed by the user."],["It offers options like `NOTHING` (default) and `RELOAD` to reload the add-on upon closing the URL, with `RELOAD` potentially blocking the main card if used with `OpenAs.OVERLAY`."],["Although previously available, the `RELOAD_ADD_ON` option is now deprecated and should not be used in new developments."]]],[]]