audio_manager_get_device_button_states()

Get the current button states of the specified output device.

Synopsis:

#include <audio/audio_manager_device.h>
 
int audio_manager_get_device_button_states(audio_manager_device_t dev, audio_manager_headset_button_state_t *state)

Since:

BlackBerry 10.0.0

Arguments:

dev

The default audio device.

state

The current button states.

Library:

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

Description:

Use audio_manager_get_device_button_states() to retrieve the states of all the supported buttons of the specified device. Currently, only the type headset is supported.

Returns:

EOK upon success, a negative errno upon failure. The errno values are available in the errno.h file.