Enumerations

The following enumerations are available globally.

  • 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 {}

    Swift

    enum PFCachePolicy : UInt8
  • 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 {}

    Swift

    enum PFErrorCode : Int