From 32094253e3f812beb1042fd5c84bee7d16923e52 Mon Sep 17 00:00:00 2001 From: wangjunget Date: Sun, 10 Nov 2019 18:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a506d6f..e0d0cbb 100644 --- a/README.md +++ b/README.md @@ -1 +1,34 @@ -# cordova-plugin-statusbar-height \ No newline at end of file +# 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 +