|
|
|
|
- Special cases
- Required permissions
BrightnessAuto (Function) In french: LuminositéAuto Returns or modifies the activation status of the automatic adjustment of the brightness on the device.
// Enables the automatic adjustment of brightness on the device BrightnessAuto(True)
Syntax
Enabling (or not) the automatic adjustment of the brightness Hide the details
BrightnessAuto(<Automatic mode>)
<Automatic mode>: Boolean - True to enable the automatic adjustment of the brightness,
- False to disable the automatic adjustment of the brightness.
Finding out the activation status of the automatic adjustment of the brightness Hide the details
<Result> = BrightnessAuto()
<Result>: Boolean - True if the automatic adjustment of the brightness is enabled,
- False if the automatic adjustment of brightness is disabled.
Remarks Special cases - If the device is not equipped with a light sensor, enabling the automatic brightness adjustment has no effect.
- The modification of the brightness affects the setting of the device. Therefore, the new brightness is global to all the applications and it will be stored when the application is closed.
- To find out the value of the current setting for the brightness of the screen, use BrightnessGet.
- To modify the value of the current setting for the brightness of the screen, use BrightnessModify.
Required permissions The call to this function modifies the permissions required by the application. Required permission : WRITE_SETTINGS This permission allows the application to write the system parameters. Component: wd280android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|