Retrieve the button length of time a button was held down from the MEDIAPLAYER_BUTTON event.
#include <bps/mediaplayer.h>
BPS_API int mediaplayer_event_get_button_length(bps_event_t *event)
BlackBerry 10.0.0
The MEDIAPLAYER_BUTTON event to extract the length from.
The mediaplayer_event_get_button_length() function extracts the length of time the button was held down from the specified MEDIAPLAYER_BUTTON event.
The length, one of the values of the media_button_length_t enumeration, or BPS_FAILURE with errno value set on error.