my.saveImage
Save the online images to a device camera gallery.
Sample Code
copy
my.saveImage({url:'https://img.example.com/example.jpg'});Parameters
| Name | Type | Mandatory | Description |
| url | String | Yes | URL of the image to be saved |
| success | Function | No | Callback function upon call success |
| fail | Function | No | Callback function upon call failure |
| complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure) |
Error Code
| error | Description |
| 2 | Invalid parameter, no url parameter transferred |
| 15 | Album right not enabled (iOS only) |
| 16 | Insufficient album storage on cellphone (iOS only) |
| 17 | Other errors during picture saving |