Constants

The following constants are available globally.


  • Declaration

    Objective-C

    extern NSString *const _Nonnull kPFDeviceType

    Swift

    let kPFDeviceType: String
  • Error domain used for all NSErrors in the SDK.

    Declaration

    Objective-C

    extern NSString *const _Nonnull PFParseErrorDomain

    Swift

    let PFParseErrorDomain: String
  • 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 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