Classes
The following classes are available globally.
-
The
See morePFACL
class is used to control which users can access or modify a particular object. EachPFObject
can have its ownPFACL
. 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.Declaration
Objective-C
@interface PFACL : NSObject <NSCopying, NSCoding>
Swift
class 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 moreDeclaration
Objective-C
@interface PFAnalytics : NSObject
Swift
class 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.
- Authentication service logIn 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.
- Authentication service linking will convert the anonymous user into a standard user by linking it to the service.
Declaration
Objective-C
@interface PFAnonymousUtils : NSObject
Swift
class PFAnonymousUtils : NSObject
-
The
See morePFCloud
class provides methods for interacting with Parse Cloud Functions.Declaration
Objective-C
@interface PFCloud : NSObject
Swift
class PFCloud : NSObject
-
See morePFConfig
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”.Declaration
Objective-C
@interface PFConfig : NSObject
Swift
class PFConfig : NSObject
-
Extends the normal JSON to PFObject decoding to also deal with placeholders for new objects that have been saved offline.
Declaration
Objective-C
@interface PFOfflineDecoder : PFDecoder
Swift
class PFOfflineDecoder : PFDecoder
-
A subclass of PFDecoder which can keep PFObject that has been fetched instead of creating a new instance.
Declaration
Objective-C
@interface PFKnownParseObjectDecoder : PFDecoder
Swift
class PFKnownParseObjectDecoder : PFDecoder
-
Declaration
Objective-C
@interface PFEncoder : NSObject
Swift
class PFEncoder : NSObject
-
Encoding strategy that encodes PFObject to PFPointer with objectId and rejects unsaved PFObject.
Declaration
Objective-C
@interface PFPointerObjectEncoder : PFPointerOrLocalIdObjectEncoder
Swift
class PFPointerObjectEncoder : PFPointerOrLocalIdObjectEncoder
-
Encoding strategy that can encode objects that are available offline. After using this encoder, you must call encodeFinished and wait for its result to be finished before the results of the encoding will be valid.
-
See morePFFileObject
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.Declaration
Objective-C
@interface PFFileObject : NSObject
Swift
class PFFileObject : NSObject
-
Unavailable
PFFile was renamed to PFFileObject. Please use it instead.
PFFile
was renamed toPFFileObject
. This class is just for warning developer what the right class is, in case they are migrating from SDKs before 1.17.2.Declaration
Objective-C
@interface PFFile : NSObject
-
Response provided by a custom
PFFileUploadController
.Declaration
Objective-C
@interface PFFileUploadResult : NSObject
Swift
class PFFileUploadResult : NSObject
-
PFGeoPoint
may be used to embed a latitude / longitude point as the value for a key in aPFObject
. It could be used to perform queries in a geospatial manner usingPFQuery.
.Currently, instances of
See morePFObject
may only have one key associated with aPFGeoPoint
type.Declaration
Objective-C
@interface PFGeoPoint : NSObject <NSCopying, NSCoding>
Swift
class 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. ThetimeZone
andbadge
fields are also readonly properties which are automatically updated to match the device’s time zone and application badge when thePFInstallation
is saved, thus these fields might not reflect the latest device state if the installation has not recently been saved.
See morePFInstallation
objects which have a validdeviceToken
and are saved to the Parse cloud can be used to target push notifications.Declaration
Objective-C
@interface PFInstallation : PFObject <PFSubclassing>
Swift
class PFInstallation : PFObject, PFSubclassing
-
The
See morePFObject
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.Declaration
Objective-C
@interface PFObject : NSObject
Swift
class PFObject : NSObject
-
See morePFPolygon
may be used to embed a latitude / longitude points as the value for a key in aPFObject
. It could be used to perform queries in a geospatial manner usingPFQuery.
.Declaration
Objective-C
@interface PFPolygon : NSObject <NSCopying, NSCoding>
Swift
class PFPolygon : NSObject, NSCopying, NSCoding
-
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
See morePFInstallation
class, instead of the class methods inPFPush
.Declaration
Objective-C
@interface PFPush : NSObject <NSCopying>
Swift
class PFPush : NSObject, NSCopying
-
The
See morePFRelation
class that is used to access all of the children of a many-to-many relationship. Each instance ofPFRelation
is associated with a particular parent object and key. -
The
PFRole
class represents a Role on the Parse server.PFRoles
represent groupings ofPFUser
objects for the purposes of granting permissions (e.g. specifying aPFACL
for aPFObject
). 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 moreDeclaration
Objective-C
@interface PFRole : PFObject <PFSubclassing>
Swift
class PFRole : PFObject, PFSubclassing
-
See morePFSession
is a local representation of a session. This class is a subclass of aPFObject
, and retains the same functionality as any other subclass ofPFObject
.Declaration
Objective-C
@interface PFSession : PFObject <PFSubclassing>
Swift
class PFSession : PFObject, PFSubclassing
-
The
See morePFUser
class is a local representation of a user persisted to the Parse Data. This class is a subclass of aPFObject
, and retains the same functionality of aPFObject
, but also extends it with various user specific methods, like authentication, signing up, and validation uniqueness.Declaration
Objective-C
@interface PFUser : PFObject <PFSubclassing>
Swift
class PFUser : PFObject, PFSubclassing
-
The
See moreParse
class contains static functions that handle global configuration for the Parse framework.Declaration
Objective-C
@interface Parse : NSObject
Swift
class 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
See moreParse.+initializeWithConfiguration:
.Declaration
Objective-C
@interface ParseClientConfiguration : NSObject <NSCopying>
Swift
class ParseClientConfiguration : NSObject, NSCopying