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
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns or modifies the activation status of the automatic adjustment of the brightness on the device.
Example
// 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: wd290android.jar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help