Image Picker

Contents

Cordova Plugin For Multiple Image Selection

https://github.com/Telerik-Verified-Plugins/ImagePicker

Ionic 图片多选Image Picker插件的安装(Installation)

ionic cordova plugin add cordova-plugin-telerik-imagepicker npm install @ionic-native/image-picker

Ionic 图片多选Image Picker插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 图片多选Image Picker插件的用法(Usage)

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


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) => { });