diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-3A498F20-5953-483D-951F-496D063A337E.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-3A498F20-5953-483D-951F-496D063A337E.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,31 @@ + + + + + +Switching +OFF the lights +

The LightOffL() method call switch OFF the specified +target light. Multiple light targets can be specified by using bitwise-or.

The +following code snippet demonstrates how to switch OFF lights for infinite +duration for multiple targets (Lights are switched OFF with fade-out):

iLight->LightOffL( CHWRMExtendedLight::EPrimaryDisplay | CHWRMExtendedLight::EPrimaryKeyboard );

The following code snippet demonstrates how to switch OFF lights for the +specified duration for one target (Lights are switched OFF with fade-out):

// aDuration = 5000 milliseconds +light->LightOffL( CHWRMExtendedLight::ESecondaryDisplay, 5000 );

After +the duration expires, if there are no previous infinite time duration call +in this session, the light state for target is changed to whatever state was +caused by the last infinite time duration call, or default state determined +by inactivity timer.

The following code snippet demonstrates how to +switch lights OFF for the specified duration for one target (fade-out is also +controlled):

// aDuration = 5000 milliseconds +// aFadeOut = EFalse means that lights turn off instantly and fade-out is not used, +// ETrue means that lights smoothly fade-out. +light->LightOnL( CHWRMExtendedLight::ESecondaryDisplay, 5000, EFalse ); All +devices do not support fade-out. In such scenarios where fade-out is not supported, +the device behaves in its default state.
+
\ No newline at end of file