Sets the background color of the statusbar by a hex string.
import { StatusBar } from "@yl/super-jssdk"
StatusBar.backgroundColorByHexString(optional)
1、支持 iOS、Android 5+以上
| 参数 | 类型 | 必填 | 作用 |
|---|---|---|---|
| optional | Object | 否 | 选填参数 |
optional
| 参数 | 类型 | 必填 | 作用 |
|---|---|---|---|
| colorHex | string | 否 | 颜色六进制,默认为 #ffffff |
| 参数 | 类型 | 作用 |
|---|---|---|
| resolve() | Function | 成功回调 |
| reject(err) | Function | 失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"} |
StatusBar.backgroundColorByHexString()