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.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.