Files
cordova-plugin-statusbar-he…/README.md
T
2019-11-10 18:36:33 +08:00

35 lines
643 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# cordova-plugin-statusbar-height
> 获取AndroidiOS状态栏高度
## Installation
```bash
cordova plugin add https://github.com/wangjunget/cordova-plugin-statusbar-height.git
```
## Methods
### cordova.plugins.StatusBarHeight.getValue
## cordova.plugins.StatusBarHeight.getValue
```javascript
document.addEventListener('deviceready', getStatusbarHeight, false);
function getStatusbarHeight() {
cordova.plugins.StatusBarHeight.getValue(
function(value) {
console.log(value);
},
function(error) {
console.log(error);
}
)
}
```
### Supported Platforms
* andorid
* ios