Identifies the state of a Session.
Session objects implement a state machine that controls their lifecycle. This enum represents the states of the state machine.
| SessionState | CREATED Indicates that the Session has not yet been opened and has no cached
token. |
| SessionState | CREATED_TOKEN_LOADED
Indicates that the Session has not yet been opened and has a cached
token. |
| SessionState | OPENING Indicates that the Session is in the process of opening. |
| SessionState | OPENED Indicates that the Session is opened. |
| SessionState | OPENED_TOKEN_UPDATED
Indicates that the Session is opened and that the token has changed. |
| SessionState | CLOSED_LOGIN_FAILED Indicates that the Session is closed, and that it was not closed
normally. |
| SessionState | CLOSED Indicates that the Session was closed normally. |
| static SessionState | values() |
| static SessionState | valueOf(String name) |
| boolean | isOpened() Returns a boolean indicating whether the state represents a successfully
opened state in which the Session can be used with a Request. |
| boolean | isClosed() Returns a boolean indicating whether the state represents a closed
Session that can no longer be used with a Request. |
Indicates that the Session has not yet been opened and has a cached token. Opening a Session in this state will not involve user interaction.
If you are using Session from an Android Service, you must provide a TokenCachingStrategy implementation that contains a valid token to the Session constructor. The resulting Session will be created in this state, and you can then safely call open, passing null for the Activity.
Indicates that the Session is opened and that the token has changed. In this state, the Session may be used with Request.
Every time the token is updated, StatusCallback is called with this value.
Last Updated: March 20, 2013