diff -r ebc84c812384 -r 46218c8b8afa Symbian3/PDK/Source/GUID-3A498F20-5953-483D-951F-496D063A337E.dita --- a/Symbian3/PDK/Source/GUID-3A498F20-5953-483D-951F-496D063A337E.dita Thu Mar 11 15:24:26 2010 +0000 +++ b/Symbian3/PDK/Source/GUID-3A498F20-5953-483D-951F-496D063A337E.dita Thu Mar 11 18:02:22 2010 +0000 @@ -1,31 +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.
+ + + + + +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