mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
docs(): updated installation instructions to make it clearer from which release you can set the android support version
This commit is contained in:
parent
6bde363d1a
commit
bd0add7256
10
README.md
10
README.md
@ -15,8 +15,13 @@ Cordova 6.0 is supported by 2.0.19, but there are a number of issues, particular
|
|||||||
|
|
||||||
Installation
|
Installation
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ cordova plugin add cordova-plugin-file-opener2
|
$ cordova plugin add cordova-plugin-file-opener2
|
||||||
|
```
|
||||||
|
|
||||||
|
From release `2.1.0` you can also set the android support version
|
||||||
|
```shell
|
||||||
$ cordova plugin add cordova-plugin-file-opener2 --variable ANDROID_SUPPORT_VERSION={required version}
|
$ cordova plugin add cordova-plugin-file-opener2 --variable ANDROID_SUPPORT_VERSION={required version}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -28,12 +33,11 @@ cordova.plugins.fileOpener2.open(
|
|||||||
fileMIMEType,
|
fileMIMEType,
|
||||||
{
|
{
|
||||||
error : function(){ },
|
error : function(){ },
|
||||||
success : function(){ },
|
success : function(){ }
|
||||||
position : [x, y]
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
`position` array of coordinates from top-left device screen, use for iOS dialog positioning.
|
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
Loading…
Reference in New Issue
Block a user