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 \ V1Methods
__construct
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: |
getUrl
The URL to open.
Returns | |
---|---|
Type | Description |
string |
setUrl
The URL to open.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getOpenAs
How to open a link.
Returns | |
---|---|
Type | Description |
int |
setOpenAs
How to open a link.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getOnClose
Whether the client forgets about a link after opening it, or observes it until the window closes.
Returns | |
---|---|
Type | Description |
int |
setOnClose
Whether the client forgets about a link after opening it, or observes it until the window closes.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |