navigator_invoke_event_get_target_type()
Get the type of an invoked target from the BPS event.
Synopsis:
#include <bps/navigator_invoke.h>
BPS_API int navigator_invoke_event_get_target_type(bps_event_t *event)
Since:
BlackBerry 10.0.0
Arguments:
- event
-
The NAVIGATOR_INVOKE_TARGET_RESULT event triggered by the invoked target.
Library:
libbpsDescription:
The navigator_invoke_event_get_target() function extracts the target type of an invoked target application. The type member allows the target to be identified as an application, service, or card.
The possible values that you can receive from this member are:
- NAVIGATOR_INVOKE_TARGET_TYPE_APPLICATION
- NAVIGATOR_INVOKE_TARGET_TYPE_CARD
- NAVIGATOR_INVOKE_TARGET_TYPE_SERVICE
Returns:
The type of the target that was invoked upon success, BPS_FAILURE with errno set otherwise.