How to check if the backlight is off and how to turn it on
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
This snippet demonstrates how to check whether the screen backlight is off and how to turn it on. This snippet can be self-signed.
If the phone is inactive for a certain period, the backlight will turn off automatically to save battery power. In some cases, this operation could be disturbing, for example, during navigation.
//necessary header file
//retrieve EBacklightState value
HAL::Get( HALData::EBacklightState, backlightState );
//backlight is ON now.
//backlight is Off now.
//ResetInactivityTime will reset all user inactivity timers and backlight
//will be turn on
Screen backlight will be turned on.