ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
  • Special cases
  • Required permissions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
BrightnessAuto (Function)
In french: LuminositéAuto
Returns or modifies the activation status of the automatic adjustment of the brightness on the device.
Example
// Active l'ajustement automatique de la luminosité sur l'appareil
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

This function changes the permissions required by the application.
Permission required: WRITE_SETTINGS
This permission allows the application to write the system parameters.
Component: wd300android.jar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help