mediaplayer_event_get_button1()

Retrieve the first button from the MEDIAPLAYER_BUTTON event.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

event

The MEDIAPLAYER_BUTTON event to extract the button from.

Library:

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

Description:

The mediaplayer_event_get_button1() function extracts the first button from the specified MEDIAPLAYER_BUTTON event.

Returns:

The first button, one of the values of the media_button_t enumeration, or BPS_FAILURE with errno value set on error.