com.nokia.notifications
Interface NotificationState


public interface NotificationState

NotificationState describes the state of the NotificationSession.


Field Summary
static int STATE_CONNECTING
          MIDlet is connecting to receive notifications.
static int STATE_OFFLINE
          MIDlet has no connection and it can not receive notifications.
static int STATE_ONLINE
          MIDlet has connected and it can receive notifications.
 
Method Summary
 int getSessionError()
          Returns the error.
 int getSessionState()
          Returns the state.
 

Field Detail

STATE_OFFLINE

static final int STATE_OFFLINE
MIDlet has no connection and it can not receive notifications.

See Also:
Constant Field Values

STATE_CONNECTING

static final int STATE_CONNECTING
MIDlet is connecting to receive notifications.

See Also:
Constant Field Values

STATE_ONLINE

static final int STATE_ONLINE
MIDlet has connected and it can receive notifications.

See Also:
Constant Field Values
Method Detail

getSessionError

int getSessionError()
Returns the error.

Returns:
The error that has occurred in the session, if any. One of the ERROR_ constants defined in NotificationError.

getSessionState

int getSessionState()
Returns the state.

Returns:
The state of the session. One of the STATE_ constants defined in this class.