OnClose

An enum that specifies what to do when a URL opened through an `https://developers.google.com/apps-script/reference/card-service/open-link` 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. `https://developers.google.com/apps-script/reference/card-service/on-close#` may cause `https://developers.google.com/apps-script/reference/card-service/open-as` to be ignored; if the client platform cannot support both selected values together,
`https://developers.google.com/apps-script/reference/card-service/on-close#` 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 `https://developers.google.com/apps-script/reference/card-service/open-as#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 `https://developers.google.com/apps-script/reference/card-service/on-close#RELOAD` in that it does not block the main card while showing an `https://developers.google.com/apps-script/reference/card-service/open-as#OVERLAY` window. |