mirror of
https://github.com/wangjunget/cordova-plugin-statusbar-height.git
synced 2026-05-30 00:00:01 +08:00
643 B
643 B
cordova-plugin-statusbar-height
获取Android,iOS状态栏高度
Installation
cordova plugin add https://github.com/wangjunget/cordova-plugin-statusbar-height.git
Methods
cordova.plugins.StatusBarHeight.getValue
cordova.plugins.StatusBarHeight.getValue
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