push_payload_is_valid()

Determines whether data validation was successful for a provided push_payload_t structure.

Synopsis:

#include <bbpush/push_payload.h>
 
bool push_payload_is_valid(const push_payload_t *push_payload)

Since:

BlackBerry 10.2.0

Arguments:

push_payload

A pointer to the push_payload_t structure whose valid member you want to retrieve.

Library:

libPushService

Description:

The push_payload_is_valid() function extracts the valid flag of a given push_payload_t structure. This flag indicates whether or not data validation is successful. Your application should call this function before calling push_payload_get_data() and push_payload_get_data_length().

This function doesn't copy members, and the returned values are released once the push_payload_t structure is destroyed with the push_payload_destroy() function.

Returns:

true if the push notification data is valid, false otherwise

Last modified: 2013-12-21

comments powered by Disqus