Skip to main content

share

Shares content like text, photos, files or links.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Object,Arrayundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"type"StringThe type of content to be shared.null
"value"StringThe data to be shared.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType 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:

Screencapture of the app showing the results of the sample code from Example 1.
An image and a text has been shared.