PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • 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
BrightnessModify (Function)
In French: LuminositéModifie
Modifies the setting of the brightness for the device screen.
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
// Applies a maximum brightness to the screen
BrightnessModify(100)
Syntax
BrightnessModify(<Brightness>)
<Brightness>: Integer or Integer constant
New value for the brightness:
  • value included between 0 and 100.
  • AndroidAndroid Widget the following constant:
    brightnessAutoThe screen lightness is automatically adapted according to the lighting conditions.
    Caution: This constant is available from Android version 2.2 (api level 8). The function will have no effect if it used with an earlier version of the system.
    To find out whether the automatic management of the brightness is enabled, use BrightnessAuto.
Remarks

Special cases

  • 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.
  • We advise you not to specify a very low brightness (less than 10). Indeed, the minimum brightness changes according to the device and the screen of the phone can be switched off if the limit is reached.
AndroidAndroid Widget

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.
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