Constants
The following constants are available globally.
-
Declaration
Objective-C
extern NSString *const _Nonnull kPFDeviceType
Swift
let kPFDeviceType: String
-
Error domain used for all
NSError
s 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 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.
Declaration
Objective-C
extern NSString *const _Nonnull PFNetworkNotificationURLRequestUserInfoKey
Swift
let PFNetworkNotificationURLRequestUserInfoKey: String
-
The key of response(NSHTTPURLResponse) in the userInfo dictionary of a notification.
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.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
-
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