Google Apps Chat V1 Client - Class OpenLink (0.6.1)

Reference documentation and code samples for the Google Apps Chat V1 Client class OpenLink.

Represents an onClick event that opens a hyperlink.

Google Workspace Add-ons and Chat apps:

Generated from protobuf message google.apps.card.v1.OpenLink

Namespace

Google \ Apps \ Card \ V1

Methods

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ url string

The URL to open.

↳ open_as int

How to open a link. Google Workspace Add-ons:

↳ on_close int

Whether the client forgets about a link after opening it, or observes it until the window closes. Google Workspace Add-ons:

The URL to open.

Returns
Type Description
string

The URL to open.

Parameter
Name Description
var string
Returns
Type Description
$this

How to open a link.

Google Workspace Add-ons:

Returns
Type Description
int

How to open a link.

Google Workspace Add-ons:

Parameter
Name Description
var int
Returns
Type Description
$this

Whether the client forgets about a link after opening it, or observes it until the window closes.

Google Workspace Add-ons:

Returns
Type Description
int

Whether the client forgets about a link after opening it, or observes it until the window closes.

Google Workspace Add-ons:

Parameter
Name Description
var int
Returns
Type Description
$this