public class ParseSession extends ParseObject
ParseSession
is a local representation of session data that can be saved
and retrieved from the Parse cloud.DEFAULT_PIN
Constructor and Description |
---|
ParseSession() |
Modifier and Type | Method and Description |
---|---|
static Task<ParseSession> |
getCurrentSessionInBackground()
Get the current
ParseSession object related to the current user. |
static void |
getCurrentSessionInBackground(GetCallback<ParseSession> callback)
Get the current
ParseSession object related to the current user. |
static ParseQuery<ParseSession> |
getQuery()
Constructs a query for
ParseSession . |
String |
getSessionToken() |
add, addAll, addAllUnique, addUnique, containsKey, create, create, createWithoutData, createWithoutData, delete, deleteAll, deleteAllInBackground, deleteAllInBackground, deleteEventually, deleteEventually, deleteInBackground, deleteInBackground, fetch, fetchAll, fetchAllIfNeeded, fetchAllIfNeededInBackground, fetchAllIfNeededInBackground, fetchAllInBackground, fetchAllInBackground, fetchFromLocalDatastore, fetchFromLocalDatastoreInBackground, fetchIfNeeded, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchInBackground, fetchInBackground, get, getACL, getBoolean, getBytes, getClassName, getCreatedAt, getDate, getDouble, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getNumber, getObjectId, getParseFile, getParseGeoPoint, getParseObject, getParseUser, getRelation, getString, getUpdatedAt, has, hasSameId, increment, increment, isDataAvailable, isDirty, isDirty, keySet, pin, pin, pinAll, pinAll, pinAllInBackground, pinAllInBackground, pinAllInBackground, pinAllInBackground, pinInBackground, pinInBackground, pinInBackground, pinInBackground, put, refresh, refreshInBackground, registerSubclass, remove, removeAll, revert, revert, save, saveAll, saveAllInBackground, saveAllInBackground, saveEventually, saveEventually, saveInBackground, saveInBackground, setACL, setObjectId, unpin, unpin, unpinAll, unpinAll, unpinAll, unpinAll, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinAllInBackground, unpinInBackground, unpinInBackground, unpinInBackground, unpinInBackground
public static Task<ParseSession> getCurrentSessionInBackground()
ParseSession
object related to the current user.ParseSession
object or null
if not valid or
logged in.public static void getCurrentSessionInBackground(GetCallback<ParseSession> callback)
ParseSession
object related to the current user.callback
- A callback that returns a ParseSession
object or null
if not
valid or logged in.public static ParseQuery<ParseSession> getQuery()
ParseSession
.ParseQuery.getQuery(Class)
public String getSessionToken()