diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-3715E8EE-FF0A-4344-90F1-1609D54C166B.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-3715E8EE-FF0A-4344-90F1-1609D54C166B.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,36 @@ + + + + + +Blinking +lights +

The LightBlinkL() method call makes the +specified target light to blink. Multiple light targets can be specified by +using bitwise-or.

The following code snippet demonstrates how to make +lights blink for infinite duration with default intensity for multiple targets:

iLight->LightBlinkL( CHWRMLight::EPrimaryDisplay | CHWRMLight::EPrimaryKeyboard );

The following code snippet demonstrates how to make lights blink for the +specified duration with default intensity for one target.

// aDuration = 5000 milliseconds +light->LightOnL( CHWRMLight::ESecondaryDisplay, 5000 );

After +the duration expires, if there has not been a 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 ON lights for the specified duration, with specified intensity for +one target (On-cycle and off-cycle times of the blinking can also be controlled):

// aDuration = 5000 milliseconds +// aOnDuration = 500 milliseconds +// aOffDuration = 500 milliseconds +// aIntensity = 30, intensity can be between KHWRMLightMinIntensity and KHWRMLightMaxIntensity, inclusive. +light->LightOnL( CHWRMLight::ESecondaryDisplay, 5000, 500, 500, 30 );

For +device default cycle duration, use the KHWRMDefaultCycleTime value. +If either aOnDuration or aOffDuration is KHWRMDefaultCycleTime, +both must be KHWRMDefaultCycleTime.

NOTE: Some +devices may not support variable blink cycle times. In such scenarios, default +value is substituted. All devices may not support user-defined intensity, +during which the device behaves in its default state.

+
\ No newline at end of file