PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns or modifies the activation status of the automatic adjustment of the brightness on the device.
Caution: This function is available on the devices running Android version 2.2 or later (api level 8). A fatal error occurs if the function is used with an earlier system version.
To find out the version of Android system on which the application is run, use SysAndroidVersion.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
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.
Components
Android wd230android.jar
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment