Package com.parse

Class ParseSession


  • @ParseClassName("_Session")
    public class ParseSession
    extends ParseObject
    The ParseSession is a local representation of session data that can be saved and retrieved from the Parse cloud.
    • Constructor Detail

      • ParseSession

        public ParseSession()
    • Method Detail

      • getCurrentSessionInBackground

        public static <any> getCurrentSessionInBackground()
        Get the current ParseSession object related to the current user.
        Returns:
        A task that resolves a ParseSession object or null if not valid or logged in.
      • getCurrentSessionInBackground

        public static void getCurrentSessionInBackground​(GetCallback<ParseSession> callback)
        Get the current ParseSession object related to the current user.
        Parameters:
        callback - A callback that returns a ParseSession object or null if not valid or logged in.
      • getSessionToken

        public java.lang.String getSessionToken()
        Returns:
        the session token for a user, if they are logged in.