Skip to main content
Version: 4.63

share

Uses the operating system's share functionality to share different data like text, photos, files or links.

note

The operating system decides what applications are available for the given data to be shared with. Furthermore, depending on different factors and implementations, possibly not all data fields are used.

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 different content types​

Show ExampleHide Example

If multiple content types a re shared in one share action, each shared content type must be a separate object within the params array.

{
"type": "share",
"params": [
{
"type": "image",
"value": "asset://mos_logo.png"
},
{
"type": "text",
"value": "$lang(share01Content01)$ $lang(share01Content02)$"
}
]
}
{
"type": "share",
"params": {
"type": "url",
"value": "$lang(share02Content01)$"
}
}
{
"type": "share",
"params": {
"type": "file",
"value": "https://example.mobilitysuite.com/documentation.pdf"
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.