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.
Расширение: | Enum |
Пакет: | facebook |
values()
public static SessionState values()
valueOf(String)
public static SessionState valueOf(String name)
Параметр | Описание |
---|---|
name |
isOpened()
Returns a boolean indicating whether the state represents a successfully opened state in which the Session can be used with a Request.
public boolean isOpened()
isClosed()
Returns a boolean indicating whether the state represents a closed Session that can no longer be used with a Request.
public boolean isClosed()
CREATED
public static final SessionState CREATED
CREATED_TOKEN_LOADED
public static final SessionState CREATED_TOKEN_LOADED
OPENING
public static final SessionState OPENING
OPENED
public static final SessionState OPENED
OPENED_TOKEN_UPDATED
public static final SessionState OPENED_TOKEN_UPDATED
CLOSED_LOGIN_FAILED
public static final SessionState CLOSED_LOGIN_FAILED
CLOSED
public static final SessionState CLOSED