请扫码查看示例
# setStatusBar ^7.8
设置状态栏样式
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
colorMode | String | N/A | 选填参数,设置状态栏字体颜色模式,1:黑色字体色系模式,2:白色字体色系模式 |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
colorMode: '1', // "选填参数,设置状态栏字体颜色模式,1:黑色字体色系模式,2:白色字体色系模式"
}
bridge
.setStatusBar(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 接口返回示例
N / A
1