Click or drag to resize
IGDPushChannelListenerOnChannelClose Method
Channel closed callback.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
void OnChannelClose(
	string token
)

Parameters

token
Type: SystemString
Token for the Push Channel that was closed.
Remarks

This callback will be invoked when the associated Push Channel is closed. This means closed by the remote end, or by the application having called disconnect.

Invocation of this callback notifies the application on the device that:

  • The associated Push Channel token cannot be used any more
  • No more Push Channel notifications will be received on this channel

If the OnChannelClose(String) was not expected, the function that is invoked could alert the user that Push Channel notifications will not be received, or cause this to be displayed as an ongoing state. The function could also initiate release of the Push Channel object. Alternatively, reconnection could be initiated, see Connect.

Note that this callback is only invoked for permanent Push Channel closure. This callback is not invoked for transient losses of channel communication. For example, this callback is not invoked when the application loses packet data coverage or otherwise cannot connect to the BlackBerry Dynamics proxy infrastructure. Losses of connection, which affect all Push Channels, can be monitored by the GDPushConnection event handler. See IGDPushConnectionListener.

See Also