mediaplayer_event_get_button_length()

Retrieve the button length of time a button was held down from the MEDIAPLAYER_BUTTON event.

Synopsis:

#include <bps/mediaplayer.h>
 
BPS_API int mediaplayer_event_get_button_length(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The MEDIAPLAYER_BUTTON event to extract the length from.

Library:

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

Description:

The mediaplayer_event_get_button_length() function extracts the length of time the button was held down from the specified MEDIAPLAYER_BUTTON event.

Returns:

The length, one of the values of the media_button_length_t enumeration, or BPS_FAILURE with errno value set on error.