navigator_event_get_keyboard_position()

Get the keyboard position from a navigator event.

Synopsis:

#include <bps/navigator.h>
 
BPS_API int navigator_event_get_keyboard_position(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The NAVIGATOR_KEYBOARD_POSITION event.

Library:

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

Description:

The navigator_event_get_keyboard_position() function extracts the keyboard position from a NAVIGATOR_KEYBOARD_POSITION event. The keyboard position is the y offset in pixels of the top of the keyboard.

Returns:

The y offset in pixels of the top of the keyboard or BPS_FAILURE if there was an error.