cordova-plugin-file-opener2
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "cordova-plugin-file-opener2", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A File Opener Plugin for Cordova. (The Original Version)", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -43,2 +43,14 @@ # A File Opener Plugin for Cordova (The Original Version) | ||
### AndroidX Support | ||
Currently if your project requires AndroidX support, you need to add the following two plugins to your project: | ||
- [cordova-plugin-androidx](https://github.com/dpa99c/cordova-plugin-androidx/) and [cordova-plugin-androidx-adapter](https://github.com/dpa99c/cordova-plugin-androidx-adapter/) | ||
```shell | ||
$ cordova plugin add cordova-plugin-androidx | ||
$ cordova plugin add cordova-plugin-androidx-adapter | ||
``` | ||
Just adding these plugins should be enough and no further changes are necessary. | ||
## fileOpener2.open(filePath, mimeType, options) | ||
@@ -45,0 +57,0 @@ |
@@ -38,3 +38,3 @@ /*jslint browser: true, devel: true, node: true, sloppy: true, plusplus: true*/ | ||
callbackContext = callbackContext || {}; | ||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position]); | ||
exec(callbackContext.success || null, callbackContext.error || null, 'FileOpener2', 'open', [fileName, contentType, false, callbackContext.position || [0, 0]]); | ||
}; | ||
@@ -41,0 +41,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
43233
210