init
parents
Showing
LICENSE
0 → 100755
This diff is collapsed.
README.md
0 → 100755
package.json
0 → 100755
{ | ||
"_args": [ | ||
[ | ||
{ | ||
"raw": "D:\\cordova-plugin-hand-webview", | ||
"scope": null, | ||
"escapedName": null, | ||
"name": null, | ||
"rawSpec": "D:\\cordova-plugin-hand-webview", | ||
"spec": "D:\\cordova-plugin-hand-webview", | ||
"type": "directory" | ||
}, | ||
"D:\\Project\\jianXinRenShou\\jxrs-app" | ||
] | ||
], | ||
"_from": "..\\..\\..\\cordova-plugin-hand-webview", | ||
"_id": "cordova-plugin-hand-webview@1.0.4", | ||
"_inBundle": false, | ||
"_inCache": true, | ||
"_integrity": "sha512-HiOuakLrf5c64LwjO14KbbJw6aEIXJsreXARRRQFF6uCjJz1y8sw3VxljEF50gkT+9VMo58uV3AyjNe9yfMqUA==", | ||
"_location": "/cordova-plugin-hand-webview", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "tag", | ||
"registry": true, | ||
"raw": "cordova-plugin-hand-webview", | ||
"name": "cordova-plugin-hand-webview", | ||
"escapedName": "cordova-plugin-hand-webview", | ||
"rawSpec": "", | ||
"saveSpec": null, | ||
"fetchSpec": "latest" | ||
}, | ||
"_requiredBy": [ | ||
"#USER" | ||
], | ||
"_resolved": "file:..\\..\\..\\cordova-plugin-hand-webview", | ||
"_shasum": "1edd7e7fbb373e4376dbeab13e84efd65163074d", | ||
"_shrinkwrap": null, | ||
"_spec": "cordova-plugin-hand-webview", | ||
"_where": "D:\\develop\\mobile\\app\\jxrs-app", | ||
"author": { | ||
"name": "hand plugin" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/liuzong/cordova-plugin-hand-webview/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"cordova": { | ||
"id": "cordova-plugin-hand-webview", | ||
"platforms": [ | ||
"android", | ||
"ios" | ||
] | ||
}, | ||
"dependencies": {}, | ||
"deprecated": false, | ||
"description": "open the H5 page", | ||
"devDependencies": {}, | ||
"homepage": "https://github.com/liuzong/cordova-plugin-hand-webview#readme", | ||
"keywords": [ | ||
"cordova", | ||
"cordova-webview", | ||
"webview" | ||
], | ||
"license": "Apache 2.0", | ||
"name": "cordova-plugin-hand-webview", | ||
"optionalDependencies": {}, | ||
"readme": "打开在线页面的WebView插件,支持在线页面中调用cordova插件,支持android和ios平台\r\n\r\n使用方法:\r\n(1)打开在线页面:\r\n WebViewPlugin.loadWebView(function (data) {\r\n //成功打开在线页面,回调函数返回的data值为0,关闭在线页面返回值为1,仅ios平台有效\r\n if (ionic.Platform.isIOS() && data === 1) {\r\n //to do ....\r\n }\r\n }, function () {\r\n console.log(\"WebViewPlugin.loadWebView failed\");\r\n }, url);\r\n 注意:对应android平台,关闭在线页面时回调函数不会返回值,如果想在关闭在线页面时做一些处理,\r\n 可以在app.js中监听resume事件,例如:\r\n $ionicPlatform.ready(function () {\r\n //关闭在线页面时,android平台会触发resume事件\r\n if (ionic.Platform.isAndroid()) {\r\n $ionicPlatform.on(\"pause\", function (event) {\r\n //to do ...\r\n });\r\n $ionicPlatform.on(\"resume\", function (event) {\r\n //to do ....\r\n });\r\n }\r\n });\r\n(2)关闭在线页面:\r\n WebViewPlugin.dismissWebView(function () {\r\n console.log(\"WebViewPlugin.dismissWebView success\");\r\n }, function () {\r\n console.log(\"WebViewPlugin.dismissWebView error\");\r\n }, '');", | ||
"readmeFilename": "README.md", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/liuzong/cordova-plugin-hand-webview.git" | ||
}, | ||
"version": "1.0.4" | ||
} |
plugin.xml
0 → 100755
File added
215 Bytes
222 Bytes
218 Bytes
231 Bytes
239 Bytes
225 Bytes
228 Bytes
232 Bytes
253 Bytes
251 Bytes
264 Bytes
211 Bytes
278 Bytes
293 Bytes
303 Bytes
296 Bytes
290 Bytes
307 Bytes
307 Bytes
316 Bytes
328 Bytes
334 Bytes
213 Bytes
299 Bytes
287 Bytes
292 Bytes
293 Bytes
269 Bytes
246 Bytes
233 Bytes
232 Bytes
231 Bytes
228 Bytes
212 Bytes
227 Bytes
228 Bytes
224 Bytes
223 Bytes
209 Bytes
215 Bytes
217 Bytes
217 Bytes
211 Bytes
206 Bytes
211 Bytes
213 Bytes
213 Bytes
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
www/WebViewPlugin.js
0 → 100755