Constants

The following constants are available globally.

Platform


  • Declaration

    Objective-C

    extern NSString *const _Nonnull kPFDeviceType

    Swift

    let kPFDeviceType: String

Errors

  • Error domain used for all NSErrors in the SDK.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFParseErrorDomain

    Swift

    let PFParseErrorDomain: String

Network Notifications

  • The name of the notification that is going to be sent before any URL request is sent.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFNetworkWillSendURLRequestNotification

    Swift

    static let PFNetworkWillSendURLRequest: NSNotification.Name
  • The name of the notification that is going to be sent after any URL response is received.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFNetworkDidReceiveURLResponseNotification

    Swift

    static let PFNetworkDidReceiveURLResponse: NSNotification.Name
  • The name of the notification that is going to be sent when any request is failing with an invalid session token.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFInvalidSessionTokenNotification

    Swift

    static let PFInvalidSessionToken: NSNotification.Name
  • The key of request(NSURLRequest) in the userInfo dictionary of a notification.

    Note

    This key is populated in userInfo, only if PFLogLevel on Parse is set to PFLogLevelDebug.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFNetworkNotificationURLRequestUserInfoKey

    Swift

    let PFNetworkNotificationURLRequestUserInfoKey: String
  • The key of response(NSHTTPURLResponse) in the userInfo dictionary of a notification.

    Note

    This key is populated in userInfo, only if PFLogLevel on Parse is set to PFLogLevelDebug.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFNetworkNotificationURLResponseUserInfoKey

    Swift

    let PFNetworkNotificationURLResponseUserInfoKey: String
  • The key of repsonse body (usually NSString with JSON) in the userInfo dictionary of a notification.

    Note

    This key is populated in userInfo, only if PFLogLevel on Parse is set to PFLogLevelDebug.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFNetworkNotificationURLResponseBodyUserInfoKey

    Swift

    let PFNetworkNotificationURLResponseBodyUserInfoKey: String
  • The name of the default pin that for PFObject local data store.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFObjectDefaultPin

    Swift

    let PFObjectDefaultPin: String

Notifications

  • For testing purposes. Allows testers to know when init is complete.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFParseInitializeDidCompleteNotification

    Swift

    static let PFParseInitializeDidComplete: NSNotification.Name