Retrieve the duration of a vibration.
#include <bps/vibration.h>
BPS_API int vibration_event_get_duration(bps_event_t *event,
int *duration)
BlackBerry 10.0.0
The VIBRATION_INFO event to get the vibration duration from.
The vibration duration will be set in this variable. A value of less than zero means that the device will vibrate until the vibration is cancelled (see vibration_request()).
The vibration_event_get_duration() function retrieves the duration of the requested vibration from a VIBRATION_INFO event
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.