notification_delete()

Delete notifications from the universal inbox notifications area, and cancel the notifications.

Synopsis:

#include <bps/notification.h>
 
BPS_API int notification_delete(notification_message_t *message)

Since:

BlackBerry 10.0.0

Arguments:

message

A pointer to a notification_message_t structure. An item_id can be included. If additional members are provided, they are ignored by this call.

Library:

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

Description:

The notification_delete() function deletes all of the calling application's notifications from the BlackBerry Hub notifications area automatically. The user may delete notifications from the Hub notifications area manually.

If you specify an item ID, this function attempts to delete a notification that was previously sent notification with the same item_id instead of all of them.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.

Last modified: 2014-05-14



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

comments powered by Disqus