Class UniversalActionResponseBuilder

UniversalActionResponseBuilder

A builder for the UniversalActionResponse objects.

Methods

MethodReturn typeBrief description
build()UniversalActionResponseBuilds the current universal action response and validates it.
displayAddOnCards(cardObjects)UniversalActionResponseBuilderDisplays the add-on with the specified cards.
setOpenLink(openLink)UniversalActionResponseBuilderSets the URL to open when the universal action is selected.

Detailed documentation

build()

Builds the current universal action response and validates it.

Return

UniversalActionResponse — a validated UniversalActionResponse.


displayAddOnCards(cardObjects)

Displays the add-on with the specified cards.

Parameters

NameTypeDescription
cardObjectsObject[]an array of Cards to display.

Return

UniversalActionResponseBuilder — this object, for chaining.


setOpenLink(openLink)

Sets the URL to open when the universal action is selected.

Parameters

NameTypeDescription
openLinkOpenLinkthe link object to use.

Return

UniversalActionResponseBuilder — this object, for chaining.

Send feedback about...

Apps Script
Apps Script