Cordova Camera Roll
The Cordova Camera Roll plugin makes it easy to read from the camera roll.
Cordova comes with some camera features such as navigator.camera.getPicture. The problem is you have no
control over the experience beyond that. On iOS, for example, a modal slides in that lets you choose a picture.
With this plugin you can get a list of all photos and do whatever you want with them after that.
Installation
cordova plugin add @hkbautistav/cordova-plugin-camera-roll
Usage
CameraRoll.getPhotos(function(photo) {
}, function(err) {
}, {
count: 12,
});
CameraRoll.saveToCameraRoll(base64String, function() {
}, function(err) {
});
About this module
Originally created by Max Lynch @maxlynch, with Android support by Jeremy Bouillanne johnnyoin.
Tested on Cordova android 5.1.1 and Cordova ios 4.1.1.
TODO
- Change the interface to have a single success callback called once, with the full list of photos.