navigator_invoke_invocation_t

The opaque invocation argument type.

Synopsis:

#include <bps/navigator_invoke.h>
 
typedef struct navigator_invoke_invocation_t navigator_invoke_invocation_t;

Since:

BlackBerry 10.0.0

Library:

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

Description:

This type defines the navigator_invoke_invocation_t structure used by several functions in the invocation framework. Use this to create and control invocations. The navigator_invoke_invocation_t structure is opaque, but includes the following members:
To perform an invocation, you must:
  1. Instantiate a navigator_invoke_invocation_t structure with the navigator_invoke_invocation_create() function.
  2. Set all desired members with the navigator_invoke_invocation_set_*() functions to match the purpose of the invocation. A minimum of either a target, action, or type member is required for the invocation to be recognised by the framework (though further members may be required for more specific invocations, such as including a uri or data member for invocations that require input data to be successfully performed.)
  3. Send the invocation with the navigator_invoke_invocation_send() function. Depending on the members you set to the navigator_invoke_invocation_t structure, the invocation is sent either directly to a target handler or the brokering system to determine which target to use based on the provided information.
  4. Retrieve the data from an invocation in an event handler by using the navigator_invoke_invocation_get_*() functions.
  5. Deallocate the memory reserved for the navigator_invoke_invocation_t structure with the navigator_invoke_invocation_destroy() function.