Skip to content

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:

PropertyTypeRequiredDescription
valuenumberYesScreen brightness value, range 0 ~ 1. 0 is the darkest, 1 is the brightest
successfunctionNoCallback function for a successful API call
failfunctionNoCallback function for a failed API call
completefunctionNoCallback function for API call completion