Image Picker
$ ionic plugin add cordova-plugin-image-picker
Repo: https://github.com/wymsee/cordova-imagePicker
Cordova Plugin For Multiple Image Selection
Requires Cordova plugin: cordova-plugin-image-picker
.
For more info, please see the https://github.com/wymsee/cordova-imagePicker
Usage
import {ImagePicker} from 'ionic-native';
ImagePicker.getPictures(options).then((results) => {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results[i]);
}
}, (err) => {
});
Static Methods
getPictures(options)
Pick pictures from the library.
Param | Type | Details |
---|---|---|
options |
ImagePickerOptions
|
Returns: Returns a Promise that resolves the image file URI otherwise rejects with an error.