Enumerations

The following enumerations are available globally.

Cache Policies

  • PFCachePolicy specifies different caching policies that could be used with PFQuery.

    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

    See more

    Declaration

    Objective-C

    enum PFCachePolicy : uint8_t {}

    Swift

    enum PFCachePolicy : UInt8, @unchecked Sendable

Logging Levels

  • 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
    See more

    Declaration

    Objective-C

    enum PFLogLevel : uint8_t {}

    Swift

    enum PFLogLevel : UInt8, @unchecked Sendable

Errors

  • PFErrorCode enum contains all custom error codes that are used as code for NSError for callbacks on all classes.

    These codes are used when domain of NSError that you receive is set to PFParseErrorDomain.

    See more

    Declaration

    Objective-C

    enum PFErrorCode : NSInteger {}

    Swift

    enum PFErrorCode : Int, @unchecked Sendable