mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Update README.md
This commit is contained in:
parent
56b2c00685
commit
6626d3edf1
@ -26,7 +26,7 @@ Usage
|
|||||||
------
|
------
|
||||||
cordova.plugins.fileOpener2.open(
|
cordova.plugins.fileOpener2.open(
|
||||||
filePath,
|
filePath,
|
||||||
fileType,
|
fileMIMEType,
|
||||||
{
|
{
|
||||||
error : function(){ },
|
error : function(){ },
|
||||||
success : function(){ }
|
success : function(){ }
|
||||||
@ -60,11 +60,13 @@ Open a PDF document with the default PDF reader and optional callback object:
|
|||||||
Notes
|
Notes
|
||||||
------
|
------
|
||||||
|
|
||||||
- For properly opening _any_ file, you must already have a suitable reader for that particular file type already installed on your device. Otherwise this will not work.
|
- For properly opening _any_ file, you must already have a suitable reader for that particular file type installed on your device. Otherwise this will not work.
|
||||||
|
|
||||||
|
|
||||||
- [It is reported](https://github.com/pwlin/cordova-plugin-file-opener2/issues/2#issuecomment-41295793) that in iOS, you might need to remove `<preference name="iosPersistentFileLocation" value="Library" />` from your `config.xml`
|
- [It is reported](https://github.com/pwlin/cordova-plugin-file-opener2/issues/2#issuecomment-41295793) that in iOS, you might need to remove `<preference name="iosPersistentFileLocation" value="Library" />` from your `config.xml`
|
||||||
|
|
||||||
|
- If you are wondering what MIME-type should you pass as the second argument tp `open` function, [here is a list of all known MIME-types](http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?view=co)
|
||||||
|
|
||||||
|
|
||||||
Additional Android Functions
|
Additional Android Functions
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user