navigator_event_get_card_orientation()
Retrieve the orientation type from the card resize event.
Synopsis:
#include <bps/navigator.h>
BPS_API int navigator_event_get_card_orientation(bps_event_t *event)
Arguments:
- event
-
The NAVIGATOR_CARD_RESIZE event.
Library:
libbpsDescription:
The navigator_event_get_card_orientation() function retrieves the resize 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 resize type. The possible return values are:
- NAVIGATOR_PORTRAIT
- NAVIGATOR_LANDSCAPE
Returns:
The card resize type upon success, BPS_FAILURE with errno set otherwise.