PFSession Class Reference

Inherits from PFObject : NSObject
Conforms to PFSubclassing
Declared in PFSession.h

Overview

PFSession is a local representation of a session. This class is a subclass of a PFObject, and retains the same functionality as any other subclass of PFObject.

  sessionToken

The session token string for this session.

@property (nullable, nonatomic, copy, readonly) NSString *sessionToken

Declared In

PFSession.h

+ getCurrentSessionInBackground

Asynchronously fetches a PFSession object related to the current user.

+ (BFTask PF_GENERIC ( PFSession *) *)getCurrentSessionInBackground

Return Value

A task that is completed with an instance of PFSession class or is faulted if the operation fails.

Discussion

Asynchronously fetches a PFSession object related to the current user.

Declared In

PFSession.h

+ getCurrentSessionInBackgroundWithBlock:

Asynchronously fetches a PFSession object related to the current user.

+ (void)getCurrentSessionInBackgroundWithBlock:(nullable PFSessionResultBlock)block

Parameters

block

The block to execute when the operation completes. It should have the following argument signature: ^(PFSession *session, NSError *error).

Discussion

Asynchronously fetches a PFSession object related to the current user.

Declared In

PFSession.h