mirror of
https://github.com/wangjunget/cordova-plugin-statusbar-height.git
synced 2026-05-30 00:00:01 +08:00
更新readme
This commit is contained in:
@@ -1 +1,34 @@
|
||||
# cordova-plugin-statusbar-height
|
||||
# cordova-plugin-statusbar-height
|
||||
> 获取Android,iOS状态栏高度
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user