PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
BrightnessGet (Function)
In French: LuminositéRécupère
Returns the current setting of the brightness for the screen of the device.
Note: This function can be used in the emulator.
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.
Versions 23 and later
iPhone/iPad This function is now available for the iPhone and iPad applications.
New in version 23
iPhone/iPad This function is now available for the iPhone and iPad applications.
iPhone/iPad This function is now available for the iPhone and iPad applications.
Example
nBrightness is int = BrightnessGet()
Syntax
<Result> = BrightnessGet()
<Result>: Integer
Current setting for the brightness of the screen in manual mode, included between 0 and 100.
AndroidAndroid Widget Caution: If the setting of the lightness is in automatic mode, the returned value can differ from the real lightness of the screen. To find out whether the setting was performed in automatic mode, use BrightnessAuto.
Remarks
  • To modify the value of the current setting for the brightness of the screen, use BrightnessModify.
  • AndroidAndroid Widget BrightnessAuto returns or modifies the activation status of the automatic adjustment of the brightness on the device.
Related Examples:
Android System Android (WINDEV Mobile): Android System
[ + ] This application is a tutorial example presenting some of the new features of WINDEV Mobile for Android.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- WIFI
- Bluetooth
- Toast
- Progress Bar control
- 9-image mode
- Compass
- Accelerometer
- Camera control
- LED
- Vibrations
- Notifications
- Drawing functions
- Internet
Components
Android wd230android.jar
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment