downloadImageToGallery
Downloads an image to the device's local storage.
To skip the completion, async
has to be used.
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"params" (required) | Object | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"additionalHeaders" | AdditionalHeaders | Additional HTTP headers which will be appended to the request. | null |
"async" | Boolean | Specifies whether the action should perform asynchronously. | null |
"field" | String | The name of the querie's returned field. | null |
"query" | String | The name of the query. | null |
"queryParams" | Array | The list of appended query parameters. | null |
"table" | String | The name of the database table. | null |
"url" | String | The URL of the image to be downloaded (Could be bundle assets). | null |
"urls" | Array | The list of image URL's to be downloaded (Could be bundle assets). | 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: 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.