{"_id":"@comingzones/cordova-plugin-statusbar-height","name":"@comingzones/cordova-plugin-statusbar-height","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@comingzones/cordova-plugin-statusbar-height","version":"1.0.0","description":"Cordova Device Plugin","types":"./types/index.d.ts","cordova":{"id":"@comingzones/cordova-plugin-statusbar-height","platforms":["android","ios","windows","browser","osx"]},"repository":{"type":"git","url":"git+ssh://git@github.com/comingzones/cordova-plugin-device.git"},"keywords":["cordova","device","ecosystem:cordova","cordova-android","cordova-ios","cordova-windows","cordova-browser","cordova-osx"],"scripts":{"test":"npm run eslint","eslint":"node node_modules/eslint/bin/eslint www && node node_modules/eslint/bin/eslint src && node node_modules/eslint/bin/eslint tests"},"author":{"name":"dev@comingzones.com"},"gitHead":"a9af8babd866853e72620b6b41aa2eeb47419323","bugs":{"url":"https://github.com/comingzones/cordova-plugin-device/issues"},"homepage":"https://github.com/comingzones/cordova-plugin-device#readme","_id":"@comingzones/cordova-plugin-statusbar-height@1.0.0","_nodeVersion":"15.8.0","_npmVersion":"7.5.1","dist":{"integrity":"sha512-GUtG9dyPYUStr3sUxoqkekqn2/QvM3sUZP/oXca+VJ1pDsIDbb3kCeNVJcWZEi7JkVhxXU1sO0OQ6btMye3edQ==","shasum":"97de52d7a376f6590223e523a0f8845848f16bc9","tarball":"https://registry.npmjs.org/@comingzones/cordova-plugin-statusbar-height/-/cordova-plugin-statusbar-height-1.0.0.tgz","fileCount":6,"unpackedSize":6550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDwvUmygcv0dzek5xO3lIDajMLxujWvNlNJ6jcFbuXtAiEAhiWWdHZP4QAdmUwQwNIUKuk+48EZUAsp1Uf5Tv8TuwE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBkP/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpscQ/+KYn+E+EdBBUi3yvonyWQzKKk/S+i2e3xZ0b+PeHDSFv1MjDl\r\n0ZelulE0Ympb+Bsu0CM8lZ37pNNMwDug8ksQWLWKbWm9CiJ748P5kCHOuBnM\r\nMYH+aWOuWV0FuqOCXTwjZpPTK/9Q6Shy6bYWaCR5HilEhcSmjNu4IBR1r3wE\r\ngVnAi07upd/zKuLz/6u+qaMBSMx5FTocs+xY6fjeZTyEYhNHqMtioGxdGBgd\r\n/T8KYgPoU0/stX8eruQ1H2a68Y2Z2GW/ynm3xq04bIarXcvmoi8+hN47PF0t\r\nj5T81Zs7TqHWuvG4k/MMMKLkj4D1H+4NbYKK3Axwm3ox/DhKXWT6WITv9rs+\r\nCFqEEWuLHkmzToi7nfQBNtKO3y1bHiqr0+/KUQJ6k6IHi3XmDyB0luYfg6bN\r\nNq3biPb/bEDKMptQ+uLSydYrFRkMZJ6/vwVUVsYVnGlDsf0HMf2qt885Fin9\r\nRtjL4V9Dr44fbXJLfBCwYU6dWHkpS+Sb1ZcAEu6hpNVxiX2b/ciYs96EvfxT\r\n49/73o7WTdnTPmD715F6BByrn+azZ1VqV172Yvb6rBiD9BmrFyrzBgWhb2cc\r\n4yzVJ8TK04t/CcKyp8zkj9eXN6jtlrLJlZWclEtB65cjkciwdC5sVuKcYYJ2\r\n4cgiz1WI6uX5bGGdKNvYdGumoHKRhivxB9I=\r\n=qSfm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"comingzones2020","email":"darrenhou1993@gmail.com"},"directories":{},"maintainers":[{"name":"comingzones2020","email":"darrenhou1993@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-statusbar-height_1.0.0_1661355007783_0.2710240740751828"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-24T15:30:07.710Z","1.0.0":"2022-08-24T15:30:07.935Z","modified":"2022-08-24T15:30:08.081Z"},"maintainers":[{"name":"comingzones2020","email":"darrenhou1993@gmail.com"}],"description":"Cordova Device Plugin","homepage":"https://github.com/comingzones/cordova-plugin-device#readme","keywords":["cordova","device","ecosystem:cordova","cordova-android","cordova-ios","cordova-windows","cordova-browser","cordova-osx"],"repository":{"type":"git","url":"git+ssh://git@github.com/comingzones/cordova-plugin-device.git"},"author":{"name":"dev@comingzones.com"},"bugs":{"url":"https://github.com/comingzones/cordova-plugin-device/issues"},"readme":"# cordova-plugin-statusbar-height\n> 获取Android，iOS状态栏高度\n\n## Installation\n\n```bash\ncordova plugin add https://github.com/wangjunget/cordova-plugin-statusbar-height.git\n```\n\n## Methods\n\n### cordova.plugins.StatusBarHeight.getValue\n\n\n\n## cordova.plugins.StatusBarHeight.getValue\n\n### Description\n\n获取状态栏高度值，值类型为设备独立像素值。\n\n###  Demo\n\n```javascript\ndocument.addEventListener('deviceready', getStatusbarHeight, false);\nfunction getStatusbarHeight() {\n    cordova.plugins.StatusBarHeight.getValue(\n        function(value) {\n            console.log(value);\n        },\n        function(error) {\n            console.log(error);\n        }\n    )\n}\n```\n\n\n### Tips\n\n* 该插件获取到的值为设备独立像素值，如需要物理像素值可自行转换\n\n  ```javascript\n  var value; // 插件获取到的独立像素值\n  var pdr = window.devicePixelRatio; // 获取设备独立像素比\n  var px = value * pdr; // 得到物理像素值\n  ```\n\n  \n\n### Supported Platforms\n\n* andorid\n* ios\n\n","readmeFilename":"README.md"}