# getStatusBar ^7.10

获取状态栏信息

# 请求参数

N/A

# 接口调用示例



this.$bridge
  .getStatusBar()
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10

# 接口返回示例


{
  isDisplay: 0, //  0:状态栏不显示 1:状态栏显示
  height: 20 //状态栏高度,安卓单位dp,iOS单位pt,用于适配状态栏
}

1
2
3
4
5
6
Last Updated: 11/16/2021, 5:51:10 PM