Classes

The following classes are available globally.

  • The PFACL class is used to control which users can access or modify a particular object. Each PFObject can have its own PFACL. You can grant read and write permissions separately to specific users, to groups of users that belong to roles, or you can grant permissions to the public so that, for example, any user could read a particular object but only a particular set of users could write to that object.

    See more

    Declaration

    Objective-C

    @interface PFACL : NSObject <NSCopying, NSCoding>
  • PFAnalytics provides an interface to Parse’s logging and analytics backend.

    Methods will return immediately and cache the request (+ timestamp) to be handled eventually. That is, the request will be sent immediately if possible or the next time a network connection is available.

    See more

    Declaration

    Objective-C

    @interface PFAnalytics : NSObject
  • Provides utility functions for working with Anonymously logged-in users. Anonymous users have some unique characteristics:

    • Anonymous users don’t need a user name or password.
    • Once logged out, an anonymous user cannot be recovered.
    • When the current user is anonymous, the following methods can be used to switch to a different user or convert the anonymous user into a regular one:
    • signUp converts an anonymous user to a standard user with the given username and password. Data associated with the anonymous user is retained.
    • logIn switches users without converting the anonymous user. Data associated with the anonymous user will be lost.
    • Service logIn (e.g. Facebook, Twitter) will attempt to convert the anonymous user into a standard user by linking it to the service. If a user already exists that is linked to the service, it will instead switch to the existing user.
    • Service linking (e.g. Facebook, Twitter) will convert the anonymous user into a standard user by linking it to the service.
    See more

    Declaration

    Objective-C

    @interface PFAnonymousUtils : NSObject
  • The PFCloud class provides methods for interacting with Parse Cloud Functions.

    See more

    Declaration

    Objective-C

    @interface PFCloud : NSObject
  • PFConfig is a representation of the remote configuration object. It enables you to add things like feature gating, a/b testing or simple Message of the day.

    See more

    Declaration

    Objective-C

    @interface PFConfig : NSObject
  • PFFile representes a file of binary data stored on the Parse servers. This can be a image, video, or anything else that an application needs to reference in a non-relational way.

    See more

    Declaration

    Objective-C

    @interface PFFile : NSObject
  • PFGeoPoint may be used to embed a latitude / longitude point as the value for a key in a PFObject. It could be used to perform queries in a geospatial manner using PFQuery.-whereKey:nearGeoPoint:.

    Currently, instances of PFObject may only have one key associated with a PFGeoPoint type.

    See more

    Declaration

    Objective-C

    @interface PFGeoPoint : NSObject <NSCopying, NSCoding>
  • A Parse Framework Installation Object that is a local representation of an installation persisted to the Parse cloud. This class is a subclass of a PFObject, and retains the same functionality of a PFObject, but also extends it with installation-specific fields and related immutability and validity checks.

    A valid PFInstallation can only be instantiated via +currentInstallation because the required identifier fields are readonly. The timeZone and badge fields are also readonly properties which are automatically updated to match the device’s time zone and application badge when the PFInstallation is saved, thus these fields might not reflect the latest device state if the installation has not recently been saved.

    PFInstallation objects which have a valid deviceToken and are saved to the Parse cloud can be used to target push notifications.

    See more

    Declaration

    Objective-C

    @interface PFInstallation : PFObject <PFSubclassing>
  • PFNetworkActivityIndicatorManager manages the state of the network activity indicator in the status bar. When enabled, it will start managing the network activity indicator in the status bar, according to the network operations that are performed by Parse SDK.

    The number of active requests is incremented or decremented like a stack or a semaphore, the activity indicator will animate, as long as the number is greater than zero.

    See more

    Declaration

    Objective-C

    @interface PFNetworkActivityIndicatorManager : NSObject
  • The PFObject class is a local representation of data persisted to the Parse cloud. This is the main class that is used to interact with objects in your app.

    See more

    Declaration

    Objective-C

    @interface PFObject : NSObject
  • The PFProduct class represents an in-app purchase product on the Parse server. By default, products can only be created via the Data Browser. Saving a PFProduct will result in error. However, the products’ metadata information can be queried and viewed.

    This class is currently for iOS only.

    See more

    Declaration

    Objective-C

    @interface PFProduct : PFObject <PFSubclassing>
  • PFPurchase provides a set of APIs for working with in-app purchases.

    This class is currently for iOS only.

    See more

    Declaration

    Objective-C

    @interface PFPurchase : NSObject
  • The PFPush class defines a push notification that can be sent from a client device.

    The preferred way of modifying or retrieving channel subscriptions is to use the PFInstallation class, instead of the class methods in PFPush.

    See more

    Declaration

    Objective-C

    @interface PFPush : NSObject <NSCopying>
  • The PFQuery class defines a query that is used to query for PFObjects.

    See more

    Declaration

    Objective-C

    @interface PFQuery < PFGenericObject : PFObject * >  : NSObject<NSCopying> 
  • The PFRelation class that is used to access all of the children of a many-to-many relationship. Each instance of PFRelation is associated with a particular parent object and key.

    See more

    Declaration

    Objective-C

    @interface PFRelation < ObjectType : PFObject * >  : NSObject
  • The PFRole class represents a Role on the Parse server. PFRoles represent groupings of PFUser objects for the purposes of granting permissions (e.g. specifying a PFACL for a PFObject). Roles are specified by their sets of child users and child roles, all of which are granted any permissions that the parent role has.

    Roles must have a name (which cannot be changed after creation of the role), and must specify an ACL.

    See more

    Declaration

    Objective-C

    @interface PFRole : PFObject <PFSubclassing>
  • 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.

    See more

    Declaration

    Objective-C

    @interface PFSession : PFObject <PFSubclassing>
  • The PFUser class is a local representation of a user persisted to the Parse Data. This class is a subclass of a PFObject, and retains the same functionality of a PFObject, but also extends it with various user specific methods, like authentication, signing up, and validation uniqueness.

    Many APIs responsible for linking a PFUser with Facebook or Twitter have been deprecated in favor of dedicated utilities for each social network. See PFFacebookUtils, PFTwitterUtils and PFAnonymousUtils for more information.

    See more

    Declaration

    Objective-C

    @interface PFUser : PFObject <PFSubclassing>
  • The Parse class contains static functions that handle global configuration for the Parse framework.

    See more

    Declaration

    Objective-C

    @interface Parse : NSObject
  • The ParseClientConfiguration represents the local configuration of the SDK to connect to the server with.

    These configurations can be stored, copied, and compared, but cannot be safely changed once the SDK is initialized.

    Use this object to construct a configuration for the SDK in your application, and pass it to Parse.+initializeWithConfiguration:.

    See more

    Declaration

    Objective-C

    @interface ParseClientConfiguration : NSObject <NSCopying>
  • The PFFacebookUtils class provides utility functions for using Facebook authentication with PFUsers.

    Warning

    This class supports official Facebook iOS SDK v4.0+ and is available only on iOS.
    See more

    Declaration

    Objective-C

    @interface PFFacebookUtils : NSObject
  • The PFTwitterUtils class provides utility functions for working with Twitter in a Parse application.

    This class is currently for iOS only.

    See more

    Declaration

    Objective-C

    @interface PFTwitterUtils : NSObject
  • The PF_Twitter class is a simple interface for interacting with the Twitter REST API, automating sign-in and OAuth signing of requests against the API.

    See more

    Declaration

    Objective-C

    @interface PF_Twitter : NSObject
  • The PFCollectionViewCell class represents a collection view cell which can download and display remote images stored on Parse as well as has a default simple text label.

    See more

    Declaration

    Objective-C

    @interface PFCollectionViewCell : UICollectionViewCell
  • An image view that downloads and displays remote image stored on Parse’s server.

    See more

    Declaration

    Objective-C

    @interface PFImageView : UIImageView
  • The PFLogInView class provides a standard log in interface for authenticating a PFUser.

    See more

    Declaration

    Objective-C

    @interface PFLogInView : UIScrollView
  • The PFLogInViewController class presents and manages a standard authentication interface for logging in a PFUser.

    See more

    Declaration

    Objective-C

    @interface PFLogInViewController : UIViewController <UITextFieldDelegate>
  • PFProductTableViewController displays in-app purchase products stored on Parse. In addition to setting up in-app purchases in iTunes Connect, the app developer needs to register product information on Parse, in the Product class.

    See more

    Declaration

    Objective-C

    @interface PFProductTableViewController : PFQueryTableViewController
  • This class allows you to think about a one-to-one mapping between a PFObject and a UICollectionViewCell, rather than having to juggle index paths.

    You also get the following features out of the box:

  • Pagination with a cell that can be tapped to load the next page.
  • Pull-to-refresh collection view header.
  • Automatic downloading and displaying of remote images in cells.
  • Loading screen, shown before any data is loaded.
  • Automatic loading and management of the objects array.
  • Various methods that can be overridden to customize behavior at major events in the data cycle.

  • See more

    Declaration

    Objective-C

    @interface PFQueryCollectionViewController
        : UICollectionViewController <UICollectionViewDelegateFlowLayout>
  • This class allows you to think about a one-to-one mapping between a PFObject and a UITableViewCell, rather than having to juggle index paths.

    You also get the following features out of the box:

    • Pagination with a cell that can be tapped to load the next page.
    • Pull-to-refresh table view header.
    • Automatic downloading and displaying of remote images in cells.
    • Loading screen, shown before any data is loaded.
    • Automatic loading and management of the objects array.
    • Various methods that can be overridden to customize behavior at major events in the data cycle.
    See more

    Declaration

    Objective-C

    @interface PFQueryTableViewController
        : UITableViewController <UITableViewDataSource, UITableViewDelegate>
  • The PFSignUpView class provides a standard sign up interface for authenticating a PFUser.

    See more

    Declaration

    Objective-C

    @interface PFSignUpView : UIScrollView
  • The PFSignUpViewController class that presents and manages a standard authentication interface for signing up a PFUser.

    See more

    Declaration

    Objective-C

    @interface PFSignUpViewController
        : UIViewController <UITextFieldDelegate, UIScrollViewDelegate>
  • The PFTableViewCell class represents a table view cell which can download and display remote images stored on Parse.

    When used in a PFQueryTableViewController - downloading and displaying of the remote images are automatically managed by the controller.

    See more

    Declaration

    Objective-C

    @interface PFTableViewCell : UITableViewCell
  • PFTextField class serves as a stylable subclass of UITextField. It includes styles that are specific to ParseUI framework and allows advanced customization.

    See more

    Declaration

    Objective-C

    @interface PFTextField : UITextField