notification_message_set_invocation_target()

Set the target of message.

Synopsis:

#include <bps/notification.h>
 
BPS_API int notification_message_set_invocation_target(notification_message_t *message,
                                                       const char *target)

Since:

BlackBerry 10.0.0

Arguments:

message

A pointer to the notification_message_t structure whose target you want to set.

target

The invocation framework identifier of the target to launch. The identifier should match the identifier returned by the invocation framework when the target application registered with the invocation framework.

Library:

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

Description:

The notification_message_set_invocation_target() function sets an invocation target to a given notification_message_t structure. This target is launched when the corresponding BlackBerry Hub item is clicked in the Hub area. The target member is used only with the notification_notify() function.

If you don't call this function, no application is launched.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-09-30



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

comments powered by Disqus