ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
SysStandby (Function)
In french: SysMiseEnVeille
Allows you to:
  • enable and disable the standby mode.
    Note: Standby settings are specific to the application:
    • when the application is stopped, the initial setting is restored.
    • when the application is moved to the background, the initial settings are restored. When the application returns to the foreground, the standby settings are restored.
Example
// Enables the standby mode
SysStandby(sysBattery, sysStandbyActive)
Syntax

Enabling/Disabling the standby mode Hide the details

SysStandby(<Power mode> , <Standby>)
<Power mode>: Integer constant
Power mode for which the management of the standby mode must be modified:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is plugged in.
iPhone/iPad This parameter is ignored. The standby mode is applied both when the device is on running on batteries or plugged in.
<Standby>: Integer constant
Enable or disable the standby mode:
sysStandbyActiveEnable the standby mode. The amount of idle time before switching to standby mode depends on the system settings.
sysStandbyInactiveDisable the standby mode when the application moves to the foreground.

Finding out the standby mode Hide the details

<Result> = SysStandby(<Power mode>)
<Result>: Boolean
  • True if the standby mode is enabled,
  • False otherwise.
<Power mode>: Integer constant
Power mode for which the management of the standby mode must be known:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is plugged in.
This parameter is ignored. The standby mode is applied both when the device is on running on batteries or plugged in.
Component: wd300android.aar
See also
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/14/2025

Send a report | Local help