Reference documentation and code samples for the Google Apps Chat V1 Client class OnClick.
Represents how to respond when users click an interactive element on a card, such as a button.
Google Workspace Add-ons and Chat apps :
Generated from protobuf message google.apps.card.v1.OnClick
Namespace
Google \ Apps \ Card \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ action
↳ open_link
↳ open_dynamic_link_action
Google\Apps\Card\V1\Action
An add-on triggers this action when the action needs to open a link. This differs from the open_link
above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back. Google Workspace Add-ons
:
↳ card
Google\Apps\Card\V1\Card
A new card is pushed to the card stack after clicking if specified. Google Workspace Add-ons :
getAction
If specified, an action is triggered by this onClick
.
hasAction
setAction
If specified, an action is triggered by this onClick
.
$this
getOpenLink
If specified, this onClick
triggers an open link action.
hasOpenLink
setOpenLink
If specified, this onClick
triggers an open link action.
$this
getOpenDynamicLinkAction
An add-on triggers this action when the action needs to open a
link. This differs from the open_link
above in that this needs to talk
to server to get the link. Thus some preparation work is required for
web client to do before the open link action response comes back.
hasOpenDynamicLinkAction
setOpenDynamicLinkAction
An add-on triggers this action when the action needs to open a
link. This differs from the open_link
above in that this needs to talk
to server to get the link. Thus some preparation work is required for
web client to do before the open link action response comes back.
$this
getCard
A new card is pushed to the card stack after clicking if specified.
hasCard
setCard
A new card is pushed to the card stack after clicking if specified.
$this
getData
string