vibration_event_get_duration()

Retrieve the duration of a vibration.

Synopsis:

#include <bps/vibration.h>
 
BPS_API int vibration_event_get_duration(bps_event_t *event,
                                         int *duration)

Since:

BlackBerry 10.0.0

Arguments:

event

The VIBRATION_INFO event to get the vibration duration from.

duration

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()).

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The vibration_event_get_duration() function retrieves the duration of the requested vibration from a VIBRATION_INFO event

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus