Enumerations
The following enumerations are available globally.
-
PFCachePolicy
specifies different caching policies that could be used withPFQuery
.This lets you show data when the user’s device is offline, or when the app has just started and network requests have not yet had time to complete. Parse takes care of automatically flushing the cache when it takes up too much space.
Warning
Cache policy could only be set when Local Datastore is not enabled.
See
PFQuery
Declaration
Objective-C
enum PFCachePolicy : uint8_t {}
Swift
enum PFCachePolicy : UInt8, @unchecked Sendable
-
PFLogLevel
enum specifies different levels of logging that could be used to limit or display more messages in logs.See
Parse.+setLogLevel:
See
Parse.+logLevel
Declaration
Objective-C
enum PFLogLevel : uint8_t {}
Swift
enum PFLogLevel : UInt8, @unchecked Sendable
-
PFErrorCode
enum contains all custom error codes that are used ascode
forNSError
for callbacks on all classes.These codes are used when
See moredomain
ofNSError
that you receive is set toPFParseErrorDomain
.Declaration
Objective-C
enum PFErrorCode : NSInteger {}
Swift
enum PFErrorCode : Int, @unchecked Sendable