Package com.parse
Class ParseSession
- java.lang.Object
-
- com.parse.ParseObject
-
- com.parse.ParseSession
-
@ParseClassName("_Session") public class ParseSession extends ParseObject
TheParseSessionis a local representation of session data that can be saved and retrieved from the Parse cloud.
-
-
Field Summary
-
Fields inherited from class com.parse.ParseObject
CREATOR, DEFAULT_PIN, KEY_CREATED_AT, KEY_OBJECT_ID, KEY_UPDATED_AT
-
-
Constructor Summary
Constructors Constructor Description ParseSession()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <any>getCurrentSessionInBackground()Get the currentParseSessionobject related to the current user.static voidgetCurrentSessionInBackground(GetCallback<ParseSession> callback)Get the currentParseSessionobject related to the current user.static ParseQuery<ParseSession>getQuery()Constructs a query forParseSession.java.lang.StringgetSessionToken()-
Methods inherited from class com.parse.ParseObject
add, addAll, addAllUnique, addUnique, containsKey, create, create, createWithoutData, createWithoutData, delete, deleteAll, deleteAllInBackground, deleteAllInBackground, deleteEventually, deleteEventually, deleteInBackground, deleteInBackground, describeContents, fetch, fetchAll, fetchAllIfNeeded, fetchAllIfNeededInBackground, fetchAllIfNeededInBackground, fetchAllInBackground, fetchAllInBackground, fetchFromLocalDatastore, fetchFromLocalDatastoreInBackground, fetchIfNeeded, fetchIfNeededInBackground, fetchIfNeededInBackground, fetchInBackground, fetchInBackground, fromJSON, fromJSON, get, getACL, getBoolean, getBytes, getClassName, getCreatedAt, getDate, getDouble, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getNumber, getObjectId, getParseFile, getParseGeoPoint, getParseObject, getParsePolygon, getParseUser, getRelation, getString, getUpdatedAt, has, hasSameId, increment, increment, isDataAvailable, isDataAvailable, isDirty, isDirty, keySet, pin, pin, pinAll, pinAll, pinAllInBackground, pinAllInBackground, pinAllInBackground, pinAllInBackground, pinInBackground, pinInBackground, pinInBackground, pinInBackground, put, 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, writeToParcel
-
-
-
-
Method Detail
-
getCurrentSessionInBackground
public static <any> getCurrentSessionInBackground()
Get the currentParseSessionobject related to the current user.- Returns:
- A task that resolves a
ParseSessionobject ornullif not valid or logged in.
-
getCurrentSessionInBackground
public static void getCurrentSessionInBackground(GetCallback<ParseSession> callback)
Get the currentParseSessionobject related to the current user.- Parameters:
callback- A callback that returns aParseSessionobject ornullif not valid or logged in.
-
getQuery
public static ParseQuery<ParseSession> getQuery()
Constructs a query forParseSession.- See Also:
ParseQuery.getQuery(Class)
-
getSessionToken
public java.lang.String getSessionToken()
- Returns:
- the session token for a user, if they are logged in.
-
-