diff --git a/src/@ionic-native/plugins/file-picker/index.ts b/src/@ionic-native/plugins/file-picker/index.ts deleted file mode 100644 index 04dbf374d..000000000 --- a/src/@ionic-native/plugins/file-picker/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; - -export interface IOSFilePickerPosition { - x: number; - y: number; - width: number; - height: number; -} - -/** - * @name iOS File Picker - * @description - * - * Opens the file picker on iOS for the user to select a file, returns a file URI. - * - * @usage - * ```typescript - * import { IOSFilePicker } from '@ionic-native/file-picker/ngx'; - * - * constructor(private filePicker: IOSFilePicker) { } - * - * ... - * - * this.filePicker.pickFile() - * .then(uri => console.log(uri)) - * .catch(err => console.log('Error', err)); - * - * ``` - * @interfaces - * IOSFilePickerPosition - */ -@Plugin({ - pluginName: 'iOS File Picker', - plugin: 'cordova-plugin-filepicker', - pluginRef: 'FilePicker', - repo: 'https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin', - platforms: ['iOS'], -}) -@Injectable() -export class IOSFilePicker extends IonicNativePlugin { - /** - * Open a file - * @params {string | string[]} [utis] - * @params {IOSFilePickerPosition} [position] Set the position of the rectangle where the file picker should show up. - * @returns {Promise} - */ - @Cordova({ - callbackOrder: 'reverse', - }) - pickFile(utis?: string | string[], position?: IOSFilePickerPosition): Promise { - return; - } -}