{"versions":{"1.0.2":{"name":"cordova-plugin-fileopener","version":"1.0.2","description":"Plugin to download and open files with default application for Android devices","cordova":{"id":"cordova-plugin-fileopener","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/Smile-SA/cordova-plugin-fileopener.git"},"keywords":["file","downloader","opener","android","extension","MIME types","cordova","plugin","ecosystem:cordova","cordova-android"],"author":{"name":"smile"},"license":"MIT","bugs":{"url":"https://github.com/Smile-SA/cordova-plugin-fileopener/issues"},"homepage":"https://github.com/Smile-SA/cordova-plugin-fileopener#readme","gitHead":"ec8ff683c5aeebb22d7b9b91d3020487b952016f","_id":"cordova-plugin-fileopener@1.0.2","scripts":{},"_shasum":"f767731a4b5d5f3f041619e6464c8bbbebcc67f9","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"pole.mobile@smile.fr"},"maintainers":[{"name":"anonymous","email":"pole.mobile@smile.fr"}],"dist":{"shasum":"f767731a4b5d5f3f041619e6464c8bbbebcc67f9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-fileopener/-/cordova-plugin-fileopener-1.0.2.tgz","size":4842,"integrity":"sha512-yAKhBe/rHKNwMA/XP01NdvHdn410FhSVCqmvDI5Vm5nTGhti1EphZjMnuW4dyYIwvjd11ML9oltyZOGqrBtLHw=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:27:22.979Z","contributors":[]},"1.0.3":{"name":"cordova-plugin-fileopener","version":"1.0.3","description":"Plugin to download and open files with default application for Android devices","cordova":{"id":"cordova-plugin-fileopener","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/Smile-SA/cordova-plugin-fileopener.git"},"keywords":["file","downloader","opener","android","extension","MIME types","cordova","plugin","ecosystem:cordova","cordova-android"],"author":{"name":"smile"},"license":"MIT","bugs":{"url":"https://github.com/Smile-SA/cordova-plugin-fileopener/issues"},"homepage":"https://github.com/Smile-SA/cordova-plugin-fileopener#readme","gitHead":"f5d17e5c2315b9d7f4da892634629039026653fe","_id":"cordova-plugin-fileopener@1.0.3","scripts":{},"_shasum":"7a1e889adb65e03c29538ae542eaad42b8c5f81d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"opensource-contributions@smile.fr"},"dist":{"shasum":"7a1e889adb65e03c29538ae542eaad42b8c5f81d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-fileopener/-/cordova-plugin-fileopener-1.0.3.tgz","size":5049,"integrity":"sha512-O3KHLoseXmUEaDloTH5MeaYaRX1dDgu7WLf0uVnOsy6+aa23rRVm43rJany28v7tBYlGbjlNhLxiTiZGUxh6Iw=="},"maintainers":[{"name":"anonymous","email":"pole.mobile@smile.fr"}],"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:27:23.837Z","contributors":[]},"1.0.4":{"name":"cordova-plugin-fileopener","version":"1.0.4","description":"Plugin to download and open files with default application for Android devices","cordova":{"id":"cordova-plugin-fileopener","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/Smile-SA/cordova-plugin-fileopener.git"},"keywords":["file","downloader","opener","android","extension","MIME types","cordova","plugin","ecosystem:cordova","cordova-android"],"author":{"name":"smile"},"license":"MIT","bugs":{"url":"https://github.com/Smile-SA/cordova-plugin-fileopener/issues"},"homepage":"https://github.com/Smile-SA/cordova-plugin-fileopener#readme","gitHead":"06f6a61a0798012d340d70d3e20d9dab925ac199","_id":"cordova-plugin-fileopener@1.0.4","scripts":{},"_shasum":"c196423be0af66eaf82617a316e4dbb96d8d7908","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"anonymous","email":"pole.mobile@smile.fr"},"maintainers":[{"name":"anonymous","email":"pole.mobile@smile.fr"}],"dist":{"shasum":"c196423be0af66eaf82617a316e4dbb96d8d7908","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-fileopener/-/cordova-plugin-fileopener-1.0.4.tgz","size":5093,"integrity":"sha512-Z0ob3Ut2k81yPQIcLoOJ6eN/fPUgw8jKRnAoR0qfnZ1poUC1/QQGHtdm2k1FV3jo8zGote0avVnrRPZVTP7LiA=="},"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:27:24.716Z","contributors":[]},"1.0.5":{"name":"cordova-plugin-fileopener","version":"1.0.5","description":"Plugin to download and open files with default application for Android devices","cordova":{"id":"cordova-plugin-fileopener","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/Smile-SA/cordova-plugin-fileopener.git"},"keywords":["file","downloader","opener","android","extension","MIME types","cordova","plugin","ecosystem:cordova","cordova-android"],"author":{"name":"smile"},"license":"MIT","bugs":{"url":"https://github.com/Smile-SA/cordova-plugin-fileopener/issues"},"homepage":"https://github.com/Smile-SA/cordova-plugin-fileopener#readme","gitHead":"135a909d95205c35879660f469a5f7acaec21ddf","_id":"cordova-plugin-fileopener@1.0.5","scripts":{},"_shasum":"3698428b93ea00cf125dc898b21a72beb91f70ce","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"anonymous","email":"opensource-contributions@smile.fr"},"dist":{"shasum":"3698428b93ea00cf125dc898b21a72beb91f70ce","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-fileopener/-/cordova-plugin-fileopener-1.0.5.tgz","size":5219,"integrity":"sha512-MDwXGCPinCdiQZnlcL6zVxxROMUiDcjtdDr/Kr0X+yfSqDOmK1ET24AW2JsL+eFom71O9YTdRj7yAglfnvDyiw=="},"maintainers":[{"name":"anonymous","email":"pole.mobile@smile.fr"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cordova-plugin-fileopener-1.0.5.tgz_1465253772327_0.8072682274505496"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T08:27:25.598Z","contributors":[]}},"dist-tags":{"latest":"1.0.5"},"name":"cordova-plugin-fileopener","time":{"created":"2022-01-27T01:24:22.398Z","modified":"2022-01-27T01:24:22.398Z","1.0.2":"2015-04-29T16:02:16.533Z","1.0.3":"2015-09-05T18:29:23.904Z","1.0.4":"2016-01-20T09:57:20.466Z","1.0.5":"2016-06-06T22:56:14.291Z"},"readme":"cordova-plugin-fileopener\r\n=====\r\n\r\n---\r\n\r\n> Cordova plugin for android which allows you to download file in background and open it with the default application from your mobile.\r\n\r\n---\r\n\r\n# Installation\r\n\r\nUsing the Cordova 3 Command-line Interface:\r\n\r\n```\r\ncordova plugin add cordova-plugin-fileopener\r\n```\r\n\r\nIf you are not using the Cordova Command-line Interface, follow [Using Plugman to Manage Plugins](http://cordova.apache.org/docs/en/edge/plugin_ref_plugman.md.html).\r\n\r\n# Supported Platforms\r\n\r\n- Android\r\n\r\n# Supported Extensions\r\n\r\nThe plugin manages theses extensions:\r\n\r\n.doc, .docx, .xls, .xlsx, .rtf, .wav, .gif, .jpg, .jpeg, .png, .txt, .mpg, .mpeg, .mpe, .mp4, .avi, .ods, .odt, .ppt, .pptx, .apk\r\n\r\nPlease feel free to make a pull request if you need more.\r\n\r\n# Methods\r\n\r\n- cordova.plugins.FileOpener.canOpenFile\r\n- cordova.plugins.FileOpener.openFile\r\n\r\n\r\n# Usage\r\n\r\n##  cordova.plugins.FileOpener.canOpenFile\r\n\r\nReturn if default application to open a file is set on the device.\r\n\r\n\r\n```\r\nwindow.cordova.plugins.FileOpener.canOpenFile(FILE_URL, SUCCESS_CALLBACK, ERROR_CALLBACK);\r\n```\r\n\r\n###  Parameters\r\n\r\n- FILE_URL: The file URL.\r\n\r\n- SUCCESS_CALLBACK: The callback that is passed the result boolean.\r\n\r\n- ERROR_CALLBACK: _(Optional)_ The callback that executes if an error occurs.\r\n\r\n\r\n### Example\r\n\r\n    // onSuccess Callback\r\n    // This method accepts a JSON object, which contains the\r\n    // boolean response\r\n    //\r\n    var onSuccess = function(data) {\r\n        alert('extension: ' + data.extension + '\\n' +\r\n              'canBeOpen: ' + data.canBeOpen);\r\n    };\r\n\r\n    // onError Callback receives a json object\r\n    //\r\n    function onError(error) {\r\n        alert('message: '  + error.message);\r\n    }\r\n\r\n    window.cordova.plugins.FileOpener.canOpenFile(\"http://www.website.com/file.pdf\", onSuccess, onError);\r\n    window.cordova.plugins.FileOpener.canOpenFile(\"file:///storage/emulated/0/Download/local_file.pdf\", onSuccess, onError);\r\n\r\n##  cordova.plugins.FileOpener.openFile\r\n\r\nDownload and open file with the default application on your device.\r\n\r\n```\r\nwindow.cordova.plugins.FileOpener.openFile(FILE_URL, SUCCESS_CALLBACK, ERROR_CALLBACK);\r\n```\r\n\r\n###  Parameters\r\n\r\n- FILE_URL: The file URL.\r\n\r\n- SUCCESS_CALLBACK: The callback that notify when action is finished.\r\n\r\n- ERROR_CALLBACK: _(Optional)_ The callback that executes if an error occurs.\r\n\r\n\r\n### Example\r\n\r\n    // onSuccess Callback\r\n    // This method accepts a JSON object, which contains the\r\n    // message response\r\n    //\r\n    var onSuccess = function(data) {\r\n        alert('message: ' + data.message);\r\n    };\r\n\r\n    // onError Callback receives a json object\r\n    //\r\n    function onError(error) {\r\n        alert('message: ' + error.message);\r\n    }\r\n\r\n    window.cordova.plugins.FileOpener.openFile(\"http://www.website.com/file.pdf\", onSuccess, onError);\r\n    window.cordova.plugins.FileOpener.openFile(\"file:///storage/emulated/0/Download/local_file.pdf\", onSuccess, onError);\r\n\r\n# License\r\n\r\nMIT :\r\n\r\nCopyright (C) 2014 Smile Mobile Team\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","users":{}}