Flutter教程

iOS DocumentPicker

Contents

Opens the file picker on iOS for the user to select a file, returns a file URI. Allows the user to upload files from iCloud

https://github.com/iampossible/Cordova-DocPicker

联系我们?

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 iOS DocumentPicker插件的安装(Installation)

ionic cordova plugin add cordova-plugin-documentpicker.DocumentPicker npm install @ionic-native/document-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/document-picker

Ionic iOS DocumentPicker插件支持的平台(Supported Platforms)

  • iOS

Ionic iOS DocumentPicker插件的用法(Usage)

import { DocumentPicker } from '@ionic-native/document-picker/ngx';

constructor(private docPicker: DocumentPicker) { }

...

this.docPicker.getFile('all')
  .then(uri => console.log(uri))
  .catch(e => console.log(e));