notification_event_get_choice()

Get the choice response index of the item selected by the user.

Synopsis:

#include <bps/notification.h>
 
BPS_API int notification_event_get_choice(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The event to get the choice response index value from.

Library:

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

Description:

The notification_event_get_choice() function retrieves the button index value of a user selection. Buttons are indexed incrementally, the first button being indexed as 1. This value is valid only if event is a NOTIFICATION_CHOICE event. In other cases 0 is returned.

Returns:

The index of the selected button, or a value of 0 if there's none.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus