vibration_request()
Request that the device vibrates.
Synopsis:
#include <bps/vibration.h>
BPS_API int vibration_request(int intensity, int duration)
Since:
BlackBerry 10.0.0
Arguments:
- intensity
-
The intensity at which the device should vibrate. You should use a value from the vibration_intensity_t, however, you can use an integer value of zero and above.
- duration
-
The length of time the device should vibrate for in milliseconds. Valid values are between zero and 5000 inclusive. Use a value of zero to cancel the vibration if the device is vibrating.
Library:
libbps (For the qcc command, use the -l bps option to link against this library)Description:
The vibration_request() function requests that the device vibrates at the specified intensity and for the specified length of time.
Returns:
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.
Last modified: 2014-09-30