share
Shares content like text, photos, files or links.
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"params" (required) | Object,Array | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"async" | Boolean | Specifies whether the action should perform asynchronously. | null |
"type" | String | The type of content to be shared. | null |
"value" | String | The data to be shared. | null |
Inherited
From Base Action
Base Action
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type name of the action. | null |
Examples
Example 1: Share some content
Goal: Share an image and a text.
Each shared content type has to be a separate object within the params
array of the action.
{
"type": "share",
"params": [
{
"type": "image",
"value": "asset://mosLogo.png"
},
{
"type": "text",
"value": "Hello World!"
}
]
}
Result:
An image and a text has been shared.