cordova-save-to-photoalbum-ios-android
v0.0.3
Published
iOS & android. Save image file(gif, jpg, png) to photo album.
Downloads
5
Maintainers
Readme
cordova-save-to-photoalbum-ios-android
iOS & android. Save image file(gif, jpg, png) to photo album.
document.addEventListener("deviceready", function(){
var url = "http://example.com/images/1.gif"
|| "file:///var/mobile/Applications/1.gif"
|| "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";
cordova.plugins.saveToPhotoAlbum.save(url, function(nativeURL){
console.log(nativeURL);
}, function(err){
console.error(err);
});
});