@ionic-native/file-picker
Advanced tools
Comparing version 4.7.0 to 4.8.0
import { IonicNativePlugin } from '@ionic-native/core'; | ||
export interface IOSFilePickerPosition { | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
} | ||
/** | ||
@@ -21,2 +27,4 @@ * @name iOS File Picker | ||
* ``` | ||
* @interfaces | ||
* IOSFilePickerPosition | ||
*/ | ||
@@ -26,5 +34,7 @@ export declare 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<string>} | ||
*/ | ||
pickFile(): Promise<string>; | ||
pickFile(utis?: string | string[], position?: IOSFilePickerPosition): Promise<string>; | ||
} |
13
index.js
@@ -22,2 +22,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; | ||
; | ||
/** | ||
@@ -42,2 +43,4 @@ * @name iOS File Picker | ||
* ``` | ||
* @interfaces | ||
* IOSFilePickerPosition | ||
*/ | ||
@@ -51,5 +54,7 @@ var IOSFilePicker = (function (_super) { | ||
* 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<string>} | ||
*/ | ||
IOSFilePicker.prototype.pickFile = function () { | ||
IOSFilePicker.prototype.pickFile = function (utis, position) { | ||
return; | ||
@@ -63,5 +68,7 @@ }; | ||
__decorate([ | ||
Cordova(), | ||
Cordova({ | ||
callbackOrder: 'reverse' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", []), | ||
__metadata("design:paramtypes", [Object, Object]), | ||
__metadata("design:returntype", Promise) | ||
@@ -68,0 +75,0 @@ ], IOSFilePicker.prototype, "pickFile", null); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"IOSFilePicker":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"iOS File Picker","plugin":"cordova-plugin-filepicker","pluginRef":"FilePicker","repo":"https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin","platforms":["iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"pickFile":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"IOSFilePicker":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"iOS File Picker","plugin":"cordova-plugin-filepicker","pluginRef":"FilePicker","repo":"https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin","platforms":["iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"pickFile":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"}}]}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"IOSFilePickerPosition":{"__symbolic":"interface"},"IOSFilePicker":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"iOS File Picker","plugin":"cordova-plugin-filepicker","pluginRef":"FilePicker","repo":"https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin","platforms":["iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"pickFile":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"IOSFilePickerPosition":{"__symbolic":"interface"},"IOSFilePicker":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"iOS File Picker","plugin":"cordova-plugin-filepicker","pluginRef":"FilePicker","repo":"https://github.com/jcesarmobile/FilePicker-Phonegap-iOS-Plugin","platforms":["iOS"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"pickFile":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackOrder":"reverse"}]}]}]}}}}] |
{ | ||
"name": "@ionic-native/file-picker", | ||
"version": "4.7.0", | ||
"version": "4.8.0", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
@@ -1,2 +0,2 @@ | ||
<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/file-picker/index.ts#L1"> | ||
<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/file-picker/index.ts#L8"> | ||
Improve this doc | ||
@@ -3,0 +3,0 @@ </a> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
9579
121