Image Picker

Contents

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

Installation

ionic cordova plugin add cordova-plugin-telerik-imagepickernpm install @ionic-native/image-picker
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/image-picker

Supported Platforms

  • Android
  • iOS

Usage

import { ImagePicker } from '@ionic-native/image-picker/ngx';


constructor(private imagePicker: ImagePicker) { }

...

this.imagePicker.getPictures(options).then((results) => {
  for (var i = 0; i < results.length; i++) {
      console.log('Image URI: ' + results[i]);
  }
}, (err) => { });