Click or drag to resize
GDPushChannelConnect Method
Connect Push Channel.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public void Connect()
Remarks

Call this function to open the Push Channel. This function can only be called when the channel is not open.

This function causes a request for a Push Channel to be sent to the BlackBerry Dynamics proxy infrastructure Network Operation Center (NOC). The NOC will create the channel, and issue a Push Channel token, which can then be used to identify the channel.

The connection attempt is asynchronous. If the attempt succeeds, the Push Channel token will be passed to the IGDPushChannelListener callback in the delegate. If the attempt fails, an error code will be passed to the IGDPushChannelListener::OnChannelError(Int32) callback in the delegate instead.

Logically, Push Channels exist within the Push Connection. Opening a Push Channel will not succeed if the Push Connection is not open and operating.

See Also