@ionic-native/file-opener
Advanced tools
Comparing version 4.4.0 to 4.4.2
57
index.js
@@ -52,16 +52,4 @@ var __extends = (this && this.__extends) || (function () { | ||
*/ | ||
FileOpener.prototype.open = function (filePath, fileMIMEType) { return; }; | ||
/** | ||
* Open an file | ||
* @param filePath {string} File Path | ||
* @param fileMIMEType {string} File MIME Type | ||
* @returns {Promise<any>} | ||
*/ | ||
FileOpener.prototype.open = /** | ||
* Open an file | ||
* @param filePath {string} File Path | ||
* @param fileMIMEType {string} File MIME Type | ||
* @returns {Promise<any>} | ||
*/ | ||
function (filePath, fileMIMEType) { return; }; | ||
/** | ||
* Uninstalls a package | ||
@@ -71,14 +59,4 @@ * @param packageId {string} Package ID | ||
*/ | ||
FileOpener.prototype.uninstall = function (packageId) { return; }; | ||
/** | ||
* Uninstalls a package | ||
* @param packageId {string} Package ID | ||
* @returns {Promise<any>} | ||
*/ | ||
FileOpener.prototype.uninstall = /** | ||
* Uninstalls a package | ||
* @param packageId {string} Package ID | ||
* @returns {Promise<any>} | ||
*/ | ||
function (packageId) { return; }; | ||
/** | ||
* Check if an app is already installed | ||
@@ -88,13 +66,3 @@ * @param packageId {string} Package ID | ||
*/ | ||
/** | ||
* Check if an app is already installed | ||
* @param packageId {string} Package ID | ||
* @returns {Promise<any>} | ||
*/ | ||
FileOpener.prototype.appIsInstalled = /** | ||
* Check if an app is already installed | ||
* @param packageId {string} Package ID | ||
* @returns {Promise<any>} | ||
*/ | ||
function (packageId) { return; }; | ||
FileOpener.prototype.appIsInstalled = function (packageId) { return; }; | ||
FileOpener.decorators = [ | ||
@@ -135,21 +103,2 @@ { type: Injectable }, | ||
], FileOpener.prototype, "appIsInstalled", null); | ||
/** | ||
* @name File Opener | ||
* @description | ||
* This plugin will open a file on your device file system with its default application. | ||
* | ||
* @usage | ||
* ```typescript | ||
* import { FileOpener } from '@ionic-native/file-opener'; | ||
* | ||
* constructor(private fileOpener: FileOpener) { } | ||
* | ||
* ... | ||
* | ||
* this.fileOpener.open('path/to/file.pdf', 'application/pdf') | ||
* .then(() => console.log('File is opened')) | ||
* .catch(e => console.log('Error openening file', e)); | ||
* | ||
* ``` | ||
*/ | ||
FileOpener = __decorate([ | ||
@@ -156,0 +105,0 @@ Plugin({ |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"FileOpener":{"__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":"FileOpener","plugin":"cordova-plugin-file-opener2","pluginRef":"cordova.plugins.fileOpener2","repo":"https://github.com/pwlin/cordova-plugin-file-opener2","platforms":["Android","iOS","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"open":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}],"uninstall":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}],"appIsInstalled":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"FileOpener":{"__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":"FileOpener","plugin":"cordova-plugin-file-opener2","pluginRef":"cordova.plugins.fileOpener2","repo":"https://github.com/pwlin/cordova-plugin-file-opener2","platforms":["Android","iOS","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"open":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}],"uninstall":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}],"appIsInstalled":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"FileOpener":{"__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":"FileOpener","plugin":"cordova-plugin-file-opener2","pluginRef":"cordova.plugins.fileOpener2","repo":"https://github.com/pwlin/cordova-plugin-file-opener2","platforms":["Android","iOS","Windows","Windows Phone 8"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"open":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}],"uninstall":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}],"appIsInstalled":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"callbackStyle":"object","successName":"success","errorName":"error"}]}]}]}}}}] |
{ | ||
"name": "@ionic-native/file-opener", | ||
"version": "4.4.0", | ||
"version": "4.4.2", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
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
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
13070
6
152