Skip to main content

downloadImageToGallery

Downloads an image to the device's local storage. To skip the completion, async has to be used.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"additionalHeaders"AdditionalHeadersAdditional HTTP headers which will be appended to the request.null
"async"BooleanSpecifies whether the action should perform asynchronously.null
"field"StringThe name of the querie's returned field.null
"query"StringThe name of the query.null
"queryParams"ArrayThe list of appended query parameters.null
"table"StringThe name of the database table.null
"url"StringThe URL of the image to be downloaded (Could be bundle assets).null
"urls"ArrayThe list of image URL's to be downloaded (Could be bundle assets).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: Download provided images to the local storage.

Goal: Create a downloadImageToGallery action that will download set of 3 internal images.

Urls has to be assigned within the params object of the action.

{
"type": "downloadImageToGallery",
"params": {
"urls": [
"internal://alarm",
"internal://bookmark",
"internal://home"
]
}
}

Result:

A downloadImageToGallery action has been created.