Show / Hide Table of Contents

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:

Inheritance
object
OnClick
Implements
IMessage<OnClick>
IEquatable<OnClick>
IDeepCloneable<OnClick>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Card.V1
Assembly: Google.Apps.Card.V1.dll
Syntax
public sealed class OnClick : IMessage<OnClick>, IEquatable<OnClick>, IDeepCloneable<OnClick>, IBufferMessage, IMessage

Constructors

OnClick()

Declaration
public OnClick()

OnClick(OnClick)

Declaration
public OnClick(OnClick other)
Parameters
Type Name Description
OnClick other

Properties

Action

If specified, an action is triggered by this onClick.

Declaration
public Action Action { get; set; }
Property Value
Type Description
Action

Card

A new card is pushed to the card stack after clicking if specified.

Google Workspace Add-ons:

Declaration
public Card Card { get; set; }
Property Value
Type Description
Card

DataCase

Declaration
public OnClick.DataOneofCase DataCase { get; }
Property Value
Type Description
OnClick.DataOneofCase

OpenDynamicLinkAction

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:

Declaration
public Action OpenDynamicLinkAction { get; set; }
Property Value
Type Description
Action

OpenLink

If specified, this onClick triggers an open link action.

Declaration
public OpenLink OpenLink { get; set; }
Property Value
Type Description
OpenLink
In this article
Back to top Generated by DocFX