@ionic-native/file-opener
Advanced tools
Comparing version 4.3.3 to 4.4.0
@@ -0,0 +0,0 @@ import { IonicNativePlugin } from '@ionic-native/core'; |
145
index.js
@@ -52,4 +52,16 @@ 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 | ||
@@ -59,4 +71,14 @@ * @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 | ||
@@ -66,50 +88,79 @@ * @param packageId {string} Package ID | ||
*/ | ||
FileOpener.prototype.appIsInstalled = function (packageId) { return; }; | ||
/** | ||
* 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.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
FileOpener.ctorParameters = function () { return []; }; | ||
__decorate([ | ||
Cordova({ | ||
callbackStyle: 'object', | ||
successName: 'success', | ||
errorName: 'error' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String, String]), | ||
__metadata("design:returntype", Promise) | ||
], FileOpener.prototype, "open", null); | ||
__decorate([ | ||
Cordova({ | ||
callbackStyle: 'object', | ||
successName: 'success', | ||
errorName: 'error' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String]), | ||
__metadata("design:returntype", Promise) | ||
], FileOpener.prototype, "uninstall", null); | ||
__decorate([ | ||
Cordova({ | ||
callbackStyle: 'object', | ||
successName: 'success', | ||
errorName: 'error' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String]), | ||
__metadata("design:returntype", Promise) | ||
], 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([ | ||
Plugin({ | ||
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'] | ||
}) | ||
], FileOpener); | ||
return FileOpener; | ||
}(IonicNativePlugin)); | ||
FileOpener.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
FileOpener.ctorParameters = function () { return []; }; | ||
__decorate([ | ||
Cordova({ | ||
callbackStyle: 'object', | ||
successName: 'success', | ||
errorName: 'error' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String, String]), | ||
__metadata("design:returntype", Promise) | ||
], FileOpener.prototype, "open", null); | ||
__decorate([ | ||
Cordova({ | ||
callbackStyle: 'object', | ||
successName: 'success', | ||
errorName: 'error' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String]), | ||
__metadata("design:returntype", Promise) | ||
], FileOpener.prototype, "uninstall", null); | ||
__decorate([ | ||
Cordova({ | ||
callbackStyle: 'object', | ||
successName: 'success', | ||
errorName: 'error' | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String]), | ||
__metadata("design:returntype", Promise) | ||
], FileOpener.prototype, "appIsInstalled", null); | ||
FileOpener = __decorate([ | ||
Plugin({ | ||
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'] | ||
}) | ||
], FileOpener); | ||
export { FileOpener }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__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"}]}]}]}}}}] | ||
[{"__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"}]}]}]}}}}] |
{ | ||
"name": "@ionic-native/file-opener", | ||
"version": "4.3.3", | ||
"version": "4.4.0", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -5,0 +5,0 @@ "module": "index.js", |
@@ -0,0 +0,0 @@ <a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/file-opener/index.ts#L1"> |
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
14097
8
203