Constants

The following constants are available globally.

Notifications

  • Posted when network reachability changes. This notification assigns no notification object. The userInfo dictionary contains an NSNumber object under the LCNetworkingReachabilityNotificationStatusItem key, representing the LCNetworkReachabilityStatus value for the current network reachability.

    Warning

    In order for network reachability to be monitored, include the SystemConfiguration framework in the active target’s “Link Binary With Library” build phase, and add #import <SystemConfiguration/SystemConfiguration.h> to the header prefix of the project (Prefix.pch).

    Declaration

    Objective-C

    extern NSString *const _Nonnull LCNetworkingReachabilityDidChangeNotification

    Swift

    static let LCNetworkingReachabilityDidChange: NSNotification.Name
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString * const LCNetworkingReachabilityNotificationStatusItem

    Swift

    let LCNetworkingReachabilityNotificationStatusItem: String

Constants

  • Error Domains

    The following error domain is predefined.

    • NSString * const LCURLRequestSerializationErrorDomain

    Constants

    LCURLRequestSerializationErrorDomain LCURLRequestSerializer errors. Error codes for LCURLRequestSerializationErrorDomain correspond to codes in NSURLErrorDomain.

    Declaration

    Objective-C

    extern NSString *const _Nonnull LCURLRequestSerializationErrorDomain

    Swift

    let LCURLRequestSerializationErrorDomain: String
  • User info dictionary keys

    These keys may exist in the user info dictionary, in addition to those defined for NSError.

    • NSString * const LCNetworkingOperationFailingURLRequestErrorKey

    Constants

    LCNetworkingOperationFailingURLRequestErrorKey The corresponding value is an NSURLRequest containing the request of the operation associated with an error. This key is only present in the LCURLRequestSerializationErrorDomain.

    Declaration

    Objective-C

    extern NSString *const _Nonnull LCNetworkingOperationFailingURLRequestErrorKey

    Swift

    let LCNetworkingOperationFailingURLRequestErrorKey: String
  • Throttling Bandwidth for HTTP Request Input Streams

    See

    -throttleBandwidthWithPacketSize:delay:

    Constants

    kLCUploadStream3GSuggestedPacketSize Maximum packet size, in number of bytes. Equal to 16kb.

    kLCUploadStream3GSuggestedDelay Duration of delay each time a packet is read. Equal to 0.2 seconds.

    Declaration

    Objective-C

    extern const NSUInteger kLCUploadStream3GSuggestedPacketSize

    Swift

    let kLCUploadStream3GSuggestedPacketSize: UInt
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSTimeInterval const kLCUploadStream3GSuggestedDelay

    Swift

    let kLCUploadStream3GSuggestedDelay: TimeInterval
  • Error Domains

    The following error domain is predefined.

    • NSString * const LCURLResponseSerializationErrorDomain

    Constants

    LCURLResponseSerializationErrorDomain LCURLResponseSerializer errors. Error codes for LCURLResponseSerializationErrorDomain correspond to codes in NSURLErrorDomain.

    Declaration

    Objective-C

    extern NSString *const _Nonnull LCURLResponseSerializationErrorDomain

    Swift

    let LCURLResponseSerializationErrorDomain: String
  • User info dictionary keys

    These keys may exist in the user info dictionary, in addition to those defined for NSError.

    • NSString * const LCNetworkingOperationFailingURLResponseErrorKey
    • NSString * const LCNetworkingOperationFailingURLResponseDataErrorKey

    Constants

    LCNetworkingOperationFailingURLResponseErrorKey The corresponding value is an NSURLResponse containing the response of the operation associated with an error. This key is only present in the LCURLResponseSerializationErrorDomain.

    LCNetworkingOperationFailingURLResponseDataErrorKey The corresponding value is an NSData containing the original data of the operation associated with an error. This key is only present in the LCURLResponseSerializationErrorDomain.

    Declaration

    Objective-C

    extern NSString *const _Nonnull LCNetworkingOperationFailingURLResponseErrorKey

    Swift

    let LCNetworkingOperationFailingURLResponseErrorKey: String
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString * const LCNetworkingOperationFailingURLResponseDataErrorKey

    Swift

    let LCNetworkingOperationFailingURLResponseDataErrorKey: String

Notifications