# wx.setStatusBarStyle(Object object)

When showStatusBarStyle is selected in the settings, the status bar is displayed at the top of the screen. This API is used to change the style of the status bar.

# Parameters

# Object object

Attribute Type Default Required Description
style string Yes Style
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)

Valid values of object.style

Value Description Minimum Version
white White
black Light color
点击咨询小助手