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( CHWRMExtendedLight::EPrimaryDisplay | CHWRMExtendedLight::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( 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 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( CHWRMExtendedLight::ESecondaryDisplay, 5000, 500, 500, 30 );
For device default cycle duration, use the value KHWRMDefaultCycleTime. If either aOnDuration or aOffDuration is KHWRMDefaultCycleTime, both must be KHWRMDefaultCycleTime.
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.