The StartVibraL() call starts the device vibration feature. If StartVibraL() is called again before the first vibration completes, the first vibration is interrupted and the second vibrations starts immediately, that is, the periods of vibration are not cumulative. The vibration can be interrupted with the method StopVibraL() before the specified interval has elapsed. Vibra settings of the vibration feature in the user profile must be active.
The following code snippet demonstrates how to start the device vibration feature with factory-defined intensity:
iVibra->StartVibraL( 5000 ); // Start vibra for five seconds.
The following code snippet demonstrates how to start the device vibration feature with client-defined intensity:
iVibra->StartVibraL( 5000, 50 ); // Start vibra for five seconds with intensity 50.
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.