• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
PushChannelState Enum Reference

Push Channel state. More...

Description

Use these enumerated constants to check the state of a Push Channel. The getState accessor always returns one of these values.

Public Attributes

 None
 
 Open
 
 Error
 
 Closed
 

Member Data Documentation

◆ None

None

Initial state, before opening.

◆ Open

Open

The Push Channel is open. The connect method has been called and a Push Channel token has been issued. A message could be received on the channel.

◆ Error

Error

There is an error on the Push Channel. If the initial connect fails, the channel enters this state instead of the open state. A channel can also enter this state later, after entering the open state, if a permanent error occurs.

If a Push Channel token had been issued, then it cannot be used any more. No (more) Push Channel messages will be received on this channel.

◆ Closed

Closed

The Push Channel is closed. The channel could have been closed by the remote end, or the application could have called disconnect .