A builder for the UniversalActionResponse
objects.
Methods
Method | Return type | Brief description |
---|---|---|
UniversalActionResponse
|
Builds the current universal action response and validates it. | |
UniversalActionResponseBuilder
|
Displays the add-on with the specified cards. | |
UniversalActionResponseBuilder
|
Sets 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.
Throws
Error
— if the constructed universal action response isn't valid.
displayAddOnCards(cardObjects)
Displays the add-on with the specified cards.
Parameters
Name | Type | Description |
---|---|---|
cardObjects
|
Object[]
|
An array of Card
s to display. |
Return
UniversalActionResponseBuilder
— This object, for chaining.
setOpenLink(openLink)
Sets the URL to open when the universal action is selected.
Parameters
Name | Type | Description |
---|---|---|
openLink
|
OpenLink
|
The link object to use. |
Return
UniversalActionResponseBuilder
— This object, for chaining.