Constants

The following constants are available globally.

  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT double FWFrameworkVersionNumber
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT const unsigned char FWFrameworkVersionString[]

UIScreen+FWAdaptive

FWAlertPlugin

UIImage+FWAnimated

FWImagePlugin

FWImagePreviewController

FWIndicatorView

FWLocationManager

  • 定位更新通知

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(LocationUpdated) const NSNotificationName
        FWLocationUpdatedNotification
  • 定位失败通知

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(LocationFailed) const NSNotificationName
        FWLocationFailedNotification
  • 方向改变通知

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(HeadingUpdated) const NSNotificationName
        FWHeadingUpdatedNotification

FWModulePriority

FWNavigationBarAppearance

Notifications

  • Posted when network reachability changes. This notification assigns no notification object. The userInfo dictionary contains an NSNumber object under the FWNetworkingReachabilityNotificationStatusItem key, representing the FWNetworkReachabilityStatus 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 NS_SWIFT_NAME(NetworkingReachabilityDidChange) const NSNotificationName
        FWNetworkingReachabilityDidChangeNotification
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString * const FWNetworkingReachabilityNotificationStatusItem

FWPlayerCacheManager

FWRouterContext

  • 路由信息来源Key,默认未处理

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(RouterSourceKey) const FWRouterUserInfoKey
        FWRouterSourceKey
  • 路由信息选项Key,默认支持NavigationOptions

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(RouterOptionsKey) const FWRouterUserInfoKey
        FWRouterOptionsKey
  • 路由信息句柄Key,默认参数context、viewController,无返回值,仅open生效

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(RouterHandlerKey) const FWRouterUserInfoKey
        FWRouterHandlerKey
  • Segment index for no selected segment

    Declaration

    Objective-C

    extern NSUInteger FWSegmentedControlNoSegment

FWStateMachine

  • 状态改变通知

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(StateChanged) const NSNotificationName
        FWStateChangedNotification

FWStatistical

  • 统计事件触发通知,可统一处理。通知object为FWStatisticalObject统计对象,userInfo为附加信息

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(StatisticalEventTriggered) const NSNotificationName
        FWStatisticalEventTriggeredNotification

FWThemeManager

FWToastPlugin

Constants

  • Error Domains

    The following error domain is predefined.

    • NSString * const FWURLRequestSerializationErrorDomain

    Constants

    FWURLRequestSerializationErrorDomain FWURLRequestSerializer errors. Error codes for FWURLRequestSerializationErrorDomain correspond to codes in NSURLErrorDomain.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(URLRequestSerializationErrorDomain) NSString *const
        FWURLRequestSerializationErrorDomain
  • User info dictionary keys

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

    • NSString * const FWNetworkingOperationFailingURLRequestErrorKey

    Constants

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

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingOperationFailingURLRequestErrorKey)
        NSString *const FWNetworkingOperationFailingURLRequestErrorKey
  • Throttling Bandwidth for HTTP Request Input Streams

    See

    -throttleBandwidthWithPacketSize:delay:

    Constants

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

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

    Declaration

    Objective-C

    extern const NSUInteger kFWUploadStream3GSuggestedPacketSize
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSTimeInterval const kFWUploadStream3GSuggestedDelay
  • Error Domains

    The following error domain is predefined.

    • NSString * const FWURLResponseSerializationErrorDomain

    Constants

    FWURLResponseSerializationErrorDomain FWURLResponseSerializer errors. Error codes for FWURLResponseSerializationErrorDomain correspond to codes in NSURLErrorDomain.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(URLResponseSerializationErrorDomain) NSString *const
        FWURLResponseSerializationErrorDomain
  • User info dictionary keys

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

    • NSString * const FWNetworkingOperationFailingURLResponseErrorKey
    • NSString * const FWNetworkingOperationFailingURLResponseDataErrorKey

    Constants

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

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

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingOperationFailingURLResponseErrorKey)
        NSString *const FWNetworkingOperationFailingURLResponseErrorKey
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString * const FWNetworkingOperationFailingURLResponseDataErrorKey

Notifications

  • Posted when a task resumes.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidResumeNotification) const
        NSNotificationName FWNetworkingTaskDidResumeNotification
  • Posted when a task finishes executing. Includes a userInfo dictionary with additional information about the task.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteNotification) const
        NSNotificationName FWNetworkingTaskDidCompleteNotification
  • Posted when a task suspends its execution.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidSuspendNotification) const
        NSNotificationName FWNetworkingTaskDidSuspendNotification
  • Posted when a session is invalidated.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(URLSessionDidInvalidateNotification) const
        NSNotificationName FWURLSessionDidInvalidateNotification
  • Posted when a session download task finished moving the temporary download file to a specified destination successfully.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(URLSessionDownloadTaskDidMoveFileSuccessfullyNotification)
        const NSNotificationName
        FWURLSessionDownloadTaskDidMoveFileSuccessfullyNotification
  • Posted when a session download task encountered an error when moving the temporary download file to a specified destination.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(URLSessionDownloadTaskDidFailToMoveFileNotification) const
        NSNotificationName FWURLSessionDownloadTaskDidFailToMoveFileNotification
  • The raw response data of the task. Included in the userInfo dictionary of the FWNetworkingTaskDidCompleteNotification if response data exists for the task.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteResponseDataKey) NSString *const
        FWNetworkingTaskDidCompleteResponseDataKey
  • The serialized response object of the task. Included in the userInfo dictionary of the FWNetworkingTaskDidCompleteNotification if the response was serialized.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteSerializedResponseKey)
        NSString *const FWNetworkingTaskDidCompleteSerializedResponseKey
  • The response serializer used to serialize the response. Included in the userInfo dictionary of the FWNetworkingTaskDidCompleteNotification if the task has an associated response serializer.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteResponseSerializerKey)
        NSString *const FWNetworkingTaskDidCompleteResponseSerializerKey
  • The file path associated with the download task. Included in the userInfo dictionary of the FWNetworkingTaskDidCompleteNotification if an the response data has been stored directly to disk.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteAssetPathKey) NSString *const
        FWNetworkingTaskDidCompleteAssetPathKey
  • Any error associated with the task, or the serialization of the response. Included in the userInfo dictionary of the FWNetworkingTaskDidCompleteNotification if an error exists.

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteErrorKey) NSString *const
        FWNetworkingTaskDidCompleteErrorKey
  • The session task metrics taken from the download task. Included in the userInfo dictionary of the FWNetworkingTaskDidCompleteSessionTaskMetrics

    Declaration

    Objective-C

    extern NS_SWIFT_NAME(NetworkingTaskDidCompleteSessionTaskMetrics)
        NSString *const FWNetworkingTaskDidCompleteSessionTaskMetrics

FWProgressViewPlugin

FWIndicatorViewPlugin