setStatusBar 设置状态栏样式
setStatusBar ^7.8
设置状态栏样式
#请求参数
| Prop | Type | Default | Comment |
|---|---|---|---|
| colorMode | String | N/A | 选填参数,设置状态栏字体颜色模式,1:黑色字体色系模式,2:白色字体色系模式 |
#引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
#接口调用示例
const params = {
colorMode: '1', // "选填参数,设置状态栏字体颜色模式,1:黑色字体色系模式,2:白色字体色系模式"
}
bridge
.setStatusBar(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
#接口返回示例
N / A
浙公网安备 33010602011771号