menu_invocation_get_target_type()

Retrieve the target type of the menu invocation.

Synopsis:

#include "bps/menu.h"
 
BPS_API int menu_invocation_get_target_type(menu_invocation_t *invocation)

Since:

BlackBerry 10.0.0

Arguments:

invocation

The menu invocation to retrieve the target type from.

Library:

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

Description:

The menu_invocation_get_target_type() function extracts the target type of the specified menu invocation object. The allowable return values are:

  • NAVIGATOR_INVOKE_TARGET_TYPE_APPLICATION
  • NAVIGATOR_INVOKE_TARGET_TYPE_CARD
  • NAVIGATOR_INVOKE_TARGET_TYPE_SERVICE
  • NAVIGATOR_INVOKE_TARGET_TYPE_HEADLESS

Returns:

The target type inside the menu invocation on success, BPS_FAILURE with errno set otherwise.