Reference documentation and code samples for the Google Apps Chat V1 Client class OnClose.
What the client does when a link opened by an OnClick action is closed.
Implementation depends on client platform capabilities. For example, a web
browser might open a link in a pop-up window with an OnClose handler.
If both OnOpen and OnClose handlers are set, and the client platform
can't support both values, OnClose takes precedence.
Google Workspace
Add-ons:
Protobuf type google.apps.card.v1.OpenLink.OnClose
Namespace
Google \ Apps \ Card \ V1 \ OpenLink
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
NOTHING
Value: 0
Default value. The card doesn't reload; nothing happens.
Generated from protobuf enum NOTHING = 0;
RELOAD
Value: 1
Reloads the card after the child window closes.
If used in conjunction with
OpenAs.OVERLAY,
the child window acts as a modal dialog and the parent card is blocked
until the child window closes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class OnClose (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Card.V1.OpenLink.OnClose)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Card.V1.OpenLink.OnClose)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Card.V1.OpenLink.OnClose)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Card.V1.OpenLink.OnClose)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Card.V1.OpenLink.OnClose)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Card.V1.OpenLink.OnClose)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Card.V1.OpenLink.OnClose)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Card.V1.OpenLink.OnClose)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Card.V1.OpenLink.OnClose)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Card.V1.OpenLink.OnClose)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Card.V1.OpenLink.OnClose)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Card.V1.OpenLink.OnClose) \nReference documentation and code samples for the Google Apps Chat V1 Client class OnClose.\n\nWhat the client does when a link opened by an `OnClick` action is closed.\n\nImplementation depends on client platform capabilities. For example, a web\nbrowser might open a link in a pop-up window with an `OnClose` handler.\nIf both `OnOpen` and `OnClose` handlers are set, and the client platform\ncan't support both values, `OnClose` takes precedence.\n[Google Workspace\nAdd-ons](https://developers.google.com/workspace/add-ons):\n\nProtobuf type `google.apps.card.v1.OpenLink.OnClose`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Card \\\\ V1 \\\\ OpenLink\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### NOTHING\n\n Value: 0\n\nDefault value. The card doesn't reload; nothing happens.\n\nGenerated from protobuf enum `NOTHING = 0;`\n\n### RELOAD\n\n Value: 1\n\nReloads the card after the child window closes.\n\nIf used in conjunction with\n[`OpenAs.OVERLAY`](https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.card.v1#openas),\nthe child window acts as a modal dialog and the parent card is blocked\nuntil the child window closes.\n\nGenerated from protobuf enum `RELOAD = 1;`"]]