Constants

The following constants are available globally.

FWScreenClassWrapper+FWAdaptive

FWLocationManager

  • 定位更新通知

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull FWLocationUpdatedNotification
  • 定位失败通知

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull FWLocationFailedNotification
  • 方向改变通知

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull FWHeadingUpdatedNotification

FWMediator

  • 模块默认优先级,100

    Declaration

    Objective-C

    static const NSUInteger FWModulePriorityDefault = 100

FWStateMachine

  • 状态改变通知

    Declaration

    Objective-C

    extern const NSNotificationName _Nonnull FWStateChangedNotification

FWThemeManager

FWImageWrapper+FWAnimated

FWImagePlugin

FWImagePreviewController

FWIndicatorView

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 NSString *const _Nonnull FWNetworkingReachabilityDidChangeNotification
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString * const FWNetworkingReachabilityNotificationStatusItem

Constants

FWPlayerCacheManager

FWStatistical

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

    Declaration

    Objective-C

    extern NSString *const _Nonnull FWStatisticalEventTriggeredNotification

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 NSString *const _Nonnull 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 NSString *const _Nonnull 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 NSString *const _Nonnull 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 NSString *const _Nonnull FWNetworkingOperationFailingURLResponseErrorKey
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString * const FWNetworkingOperationFailingURLResponseDataErrorKey

Notifications

FWProgressViewPlugin

FWIndicatorViewPlugin