Class ActionResponseBuilder

ActionResponseBuilder

A builder for ActionResponse objects.

Methods

MethodReturn typeBrief description
build()ActionResponseBuilds the current action response and validates it.
setNavigation(navigation)ActionResponseBuilderSets the response to a Navigation action.
setNotification(notification)ActionResponseBuilderSets the notification to display when the action is activated.
setOpenLink(openLink)ActionResponseBuilderSets the URL to navigate to when the action is activated.

Detailed documentation

build()

Builds the current action response and validates it.

Return

ActionResponse — a validated ActionResponse.


setNavigation(navigation)

Sets the response to a Navigation action.

Parameters

NameTypeDescription
navigationNavigationthe Navigation to use.

Return

ActionResponseBuilder — this object, for chaining.


setNotification(notification)

Sets the notification to display when the action is activated.

Parameters

NameTypeDescription
notificationNotificationthe Notification to use.

Return

ActionResponseBuilder — this object, for chaining.


setOpenLink(openLink)

Sets the URL to navigate to when the action is activated.

Parameters

NameTypeDescription
openLinkOpenLinkthe OpenLink to use.

Return

ActionResponseBuilder — this object, for chaining.

Send feedback about...

Apps Script
Apps Script