Flutter教程

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

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

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

ionic cordova plugin add cordova-plugin-telerik-imagepicker npm 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=YOURPRODUCTKEY npm install @ionic-enterprise/image-picker

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

  • Android
  • iOS

Ionic 图片多选Image Picker插件的用法(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) => { });