push_service_destroy_channel()

Destroys the channel when the application no longer needs it.

Synopsis:

#include <bbpush/push_service.h>
 
int push_service_destroy_channel(push_service_t *ps, push_callback_t cb_func, push_transport_ready_callback_t transport_ready_cb_func)

Since:

BlackBerry 10.2.0

Arguments:

ps

A pointer to the push_service_t structure used to create the request.

cb_func

Callback in response to push_service_destroy_channel(). This callback contains a status_code parameter to specify the failure condition. This callback function cannot be NULL.

transport_ready_cb_func

Callback in response to push_service_destroy_channel(). Sent when a previous push_service_destroy_channel() request failed with a PUSH_ERR_TRANSPORT_FAILURE (10103) or PUSH_ERR_PPG_SERVER_ERROR (10110) status code. This callback function cannot be NULL.

Library:

libPushService

Description:

Returns:

PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.

Last modified: 2013-12-23

comments powered by Disqus