Request that the device vibrates.
#include <bps/vibration.h>
BPS_API int vibration_request(int intensity,
int duration)
BlackBerry 10.0.0
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.
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.
The vibration_request() function requests that the device vibrates at the specified intensity and for the specified length of time.
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.