backgroundColorByHexString

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()

results matching ""

    No results matching ""