# wx.setScreenBrightness(Object object)
Start from base library version 1.2.0. Please remaining backward compatible.
Sets screen brightness.
# Parameters
# Object object
Attribute | Type | Default | Required | Description |
---|---|---|---|---|
value | number | Yes | Screen brightness. Range: 0-1. 0: Darkest; 1: Brightest. | |
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) |