navigator_event_get_card_edge()

Retrieve the card edge type from the card resize event.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

event

The NAVIGATOR_CARD_RESIZE event.

Library:

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

Description:

The navigator_event_get_card_edge() function retrieves the edge type of a card that has been targeted by a card resize event. Call this function from the card application upon receiving the NAVIGATOR_CARD_RESIZE event to extract the card's edge type. The possible return values are:
  • NAVIGATOR_TOP_UP
  • NAVIGATOR_BOTTOM_UP
  • NAVIGATOR_LEFT_UP
  • NAVIGATOR_RIGHT_UP

Returns:

The card edge type upon success, BPS_FAILURE with errno set otherwise.