AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas para móviles / Funciones de teléfono
  • 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
BrightnessAuto (Function)
In french: LuminositéAuto
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
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local