my.saveImage

Save the online images to a device camera gallery.

Sample Code

copy
my.saveImage({url:'https://img.example.com/example.jpg'});

Parameters

NameTypeMandatoryDescription
urlStringYesURL of the image to be saved
successFunctionNoCallback function upon call success
failFunctionNoCallback function upon call failure
completeFunctionNoCallback function upon call   completion (to be executed upon either call success or failure)

Error Code

errorDescription
2Invalid parameter, no url parameter   transferred
15Album right not enabled (iOS only)
16Insufficient album storage on   cellphone (iOS only)
17Other errors during picture saving