sud.setScreenBrightness
JS
sud.setScreenBrightness(Object object)Set the screen brightness
Parameters
- Object object: Input parameters, see the properties in the table below
object properties:
| Property | Type | Required | Description |
|---|---|---|---|
| value | number | Yes | Screen brightness value, range 0 ~ 1. 0 is the darkest, 1 is the brightest |
| success | function | No | Callback function for a successful API call |
| fail | function | No | Callback function for a failed API call |
| complete | function | No | Callback function for API call completion |
