Constants
The following constants are available globally.
-
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch35 = 35 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch40 = 40 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch47 = 47 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch54 = 54 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch55 = 55 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch58 = 58 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch61 = 61 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch65 = 65 -
Undocumented
Declaration
Objective-C
static const FWScreenInch FWScreenInch67 = 67 -
异常捕获通知,object为NSException对象,userInfo为附加信息(name|reason|method|remark|symbols)
Declaration
Objective-C
extern NS_SWIFT_NAME(ExceptionCaptured) const NSNotificationName FWExceptionCapturedNotification -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT double FWFrameworkVersionNumber -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT const unsigned char FWFrameworkVersionString[] -
本地化语言改变通知,object为本地化语言名称
Declaration
Objective-C
extern NS_SWIFT_NAME(LanguageChanged) const NSNotificationName FWLanguageChangedNotification
-
定位更新通知
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
-
Undocumented
Declaration
Objective-C
static const FWModulePriority FWModulePriorityLow = 250 -
Undocumented
Declaration
Objective-C
static const FWModulePriority FWModulePriorityDefault = 500 -
Undocumented
Declaration
Objective-C
static const FWModulePriority FWModulePriorityHigh = 750
-
路由信息来源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
-
状态改变通知
Declaration
Objective-C
extern NS_SWIFT_NAME(StateChanged) const NSNotificationName FWStateChangedNotification
-
浅色样式
Declaration
Objective-C
static const FWThemeStyle FWThemeStyleLight = 1 -
深色样式
Declaration
Objective-C
static const FWThemeStyle FWThemeStyleDark = 2 -
跟随系统模式,iOS13以上动态切换,iOS13以下固定浅色,默认
Declaration
Objective-C
static const FWThemeMode FWThemeModeSystem = 0 -
固定浅色模式
Declaration
Objective-C
static const FWThemeMode FWThemeModeLight = FWThemeStyleLight -
固定深色模式
Declaration
Objective-C
static const FWThemeMode FWThemeModeDark = FWThemeStyleDark -
iOS13主题改变通知,object为FWThemeManager时表示手工切换,object为UIScreen时为系统切换
Declaration
Objective-C
extern NS_SWIFT_NAME(ThemeChanged) const NSNotificationName FWThemeChangedNotification -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT double FWApplicationVersionNumber -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT const unsigned char FWApplicationVersionString[]
-
默认弹框样式
Declaration
Objective-C
static const FWAlertStyle FWAlertStyleDefault = 0 -
成功弹框样式
Declaration
Objective-C
static const FWAlertStyle FWAlertStyleSuccess = 1 -
失败弹框样式
Declaration
Objective-C
static const FWAlertStyle FWAlertStyleFailure = 2
-
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatUndefined = -1 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatJPEG = 0 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatPNG = 1 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatGIF = 2 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatTIFF = 3 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatWebP = 4 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatHEIC = 5 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatHEIF = 6 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatPDF = 7 -
Undocumented
Declaration
Objective-C
static const FWImageFormat FWImageFormatSVG = 8 -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketException -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketErrorDomain -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketQueueName -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketThreadName -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketManuallyEvaluateTrust -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketUseCFStreamForTLS -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLPeerID -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLProtocolVersionMin -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLProtocolVersionMax -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLSessionOptionFalseStart -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLSessionOptionSendOneByteRecord -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLCipherSuites -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncSocketSSLALPN -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncUdpSocketException -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncUdpSocketErrorDomain -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncUdpSocketQueueName -
Undocumented
Declaration
Objective-C
extern NSString *const FWAsyncUdpSocketThreadName -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSString *const FWBarrageAnimation -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSString *const FWRequestValidationErrorDomain -
内存缓存
Declaration
Objective-C
static const FWCacheType FWCacheTypeMemory = 1 -
NSUserDefaults缓存
Declaration
Objective-C
static const FWCacheType FWCacheTypeUserDefaults = 2 -
Keychain缓存
Declaration
Objective-C
static const FWCacheType FWCacheTypeKeychain = 3 -
文件缓存
Declaration
Objective-C
static const FWCacheType FWCacheTypeFile = 4 -
Sqlite数据库缓存
Declaration
Objective-C
static const FWCacheType FWCacheTypeSqlite = 5 -
用于属性 maximumItemSize,是它的默认值。表示 item 的最大宽高会自动根据当前 floatLayoutView 的内容大小来调整,从而避免 item 内容过多时可能溢出 floatLayoutView。
Declaration
Objective-C
extern const CGSize FWFloatLayoutViewAutomaticalMaximumItemSize
-
图片解码scale选项,默认未指定时为1
Declaration
Objective-C
extern const FWImageCoderOptions _Nonnull FWImageCoderOptionScaleFactor
-
Undocumented
Declaration
Objective-C
extern const CGFloat FWImagePreviewCornerRadiusAutomaticDimension
-
八线条渐变旋转,类似系统,默认
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeLineSpin = 0 -
五线条跳动,类似音符
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeLinePulse = 1 -
八圆球渐变旋转
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeBallSpin = 2 -
三圆球水平跳动
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeBallPulse = 3 -
三圆圈三角形旋转
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeBallTriangle = 4 -
单圆圈渐变旋转
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeCircleSpin = 5 -
圆形向外扩散,类似水波纹
Declaration
Objective-C
static const FWIndicatorViewAnimationType FWIndicatorViewAnimationTypeTriplePulse = 6
-
默认样式,应用可配置并扩展
Declaration
Objective-C
static const FWNavigationBarStyle FWNavigationBarStyleDefault = 0
-
Posted when network reachability changes. This notification assigns no notification object. The
userInfodictionary contains anNSNumberobject under theFWNetworkingReachabilityNotificationStatusItemkey, representing theFWNetworkReachabilityStatusvalue for the current network reachability.Warning
In order for network reachability to be monitored, include theSystemConfigurationframework 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
-
Error Domains
The following error domain is predefined.
NSString * const FWOAuth2ErrorDomain## OAuth Grant Types OAuth 2.0 provides several grant types, covering several different use cases. The following grant type string constants are provided:kFWOAuthCodeGrantType: “authorization_code”kFWOAuthClientCredentialsGrantType: “client_credentials”kFWOAuthPasswordCredentialsGrantType: “password”kFWOAuthRefreshGrantType: “refresh_token”
Declaration
Objective-C
extern NS_SWIFT_NAME(OAuth2ErrorDomain) NSString *const FWOAuth2ErrorDomain -
Undocumented
Declaration
Objective-C
extern NSString * const kFWOAuthCodeGrantType -
Undocumented
Declaration
Objective-C
extern NSString * const kFWOAuthClientCredentialsGrantType -
Undocumented
Declaration
Objective-C
extern NSString * const kFWOAuthPasswordCredentialsGrantType -
Undocumented
Declaration
Objective-C
extern NSString * const kFWOAuthRefreshGrantType
-
Undocumented
Declaration
Objective-C
extern NSNotificationName FWPlayerCacheManagerDidUpdateCacheNotification -
Undocumented
Declaration
Objective-C
extern NSNotificationName FWPlayerCacheManagerDidFinishCacheNotification -
Undocumented
Declaration
Objective-C
extern NSString *FWPlayerCacheConfigurationKey -
Undocumented
Declaration
Objective-C
extern NSString *FWPlayerCacheFinishedErrorKey -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSString *const FWRequestCacheErrorDomain -
Segment index for no selected segment
Declaration
Objective-C
extern NSUInteger FWSegmentedControlNoSegment
-
统计事件触发通知,可统一处理。通知object为FWStatisticalObject统计对象,userInfo为附加信息
Declaration
Objective-C
extern NS_SWIFT_NAME(StatisticalEventTriggered) const NSNotificationName FWStatisticalEventTriggeredNotification
-
默认消息样式
Declaration
Objective-C
static const FWToastStyle FWToastStyleDefault = 0 -
成功消息样式
Declaration
Objective-C
static const FWToastStyle FWToastStyleSuccess = 1 -
失败消息样式
Declaration
Objective-C
static const FWToastStyle FWToastStyleFailure = 2
-
Error Domains
The following error domain is predefined.
NSString * const FWURLRequestSerializationErrorDomain
Constants
FWURLRequestSerializationErrorDomainFWURLRequestSerializer errors. Error codes forFWURLRequestSerializationErrorDomaincorrespond to codes inNSURLErrorDomain.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
FWNetworkingOperationFailingURLRequestErrorKeyThe corresponding value is anNSURLRequestcontaining the request of the operation associated with an error. This key is only present in theFWURLRequestSerializationErrorDomain.Declaration
Objective-C
extern NS_SWIFT_NAME(NetworkingOperationFailingURLRequestErrorKey) NSString *const FWNetworkingOperationFailingURLRequestErrorKey -
Throttling Bandwidth for HTTP Request Input Streams
See
-throttleBandwidthWithPacketSize:delay:Constants
kFWUploadStream3GSuggestedPacketSizeMaximum packet size, in number of bytes. Equal to 16kb.kFWUploadStream3GSuggestedDelayDuration 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
FWURLResponseSerializationErrorDomainFWURLResponseSerializer errors. Error codes forFWURLResponseSerializationErrorDomaincorrespond to codes inNSURLErrorDomain.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 FWNetworkingOperationFailingURLResponseErrorKeyNSString * const FWNetworkingOperationFailingURLResponseDataErrorKey
Constants
FWNetworkingOperationFailingURLResponseErrorKeyThe corresponding value is anNSURLResponsecontaining the response of the operation associated with an error. This key is only present in theFWURLResponseSerializationErrorDomain.FWNetworkingOperationFailingURLResponseDataErrorKeyThe corresponding value is anNSDatacontaining the original data of the operation associated with an error. This key is only present in theFWURLResponseSerializationErrorDomain.Declaration
Objective-C
extern NS_SWIFT_NAME(NetworkingOperationFailingURLResponseErrorKey) NSString *const FWNetworkingOperationFailingURLResponseErrorKey -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSString * const FWNetworkingOperationFailingURLResponseDataErrorKey
-
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
FWNetworkingTaskDidCompleteNotificationif 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
FWNetworkingTaskDidCompleteNotificationif 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
FWNetworkingTaskDidCompleteNotificationif 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
FWNetworkingTaskDidCompleteNotificationif 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
FWNetworkingTaskDidCompleteNotificationif 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
FWNetworkingTaskDidCompleteSessionTaskMetricsDeclaration
Objective-C
extern NS_SWIFT_NAME(NetworkingTaskDidCompleteSessionTaskMetrics) NSString *const FWNetworkingTaskDidCompleteSessionTaskMetrics -
Undocumented
Declaration
Objective-C
static const FWViewControllerState FWViewControllerStateReady = 0 -
Undocumented
Declaration
Objective-C
static const FWViewControllerState FWViewControllerStateLoading = 1 -
Undocumented
Declaration
Objective-C
static const FWViewControllerState FWViewControllerStateSuccess = 2 -
Undocumented
Declaration
Objective-C
static const FWViewControllerState FWViewControllerStateFailure = 3
-
默认进度条样式,用于框架Toast等
Declaration
Objective-C
static const FWProgressViewStyle FWProgressViewStyleDefault = 0
-
默认指示器样式,用于框架Empty|Toast等
Declaration
Objective-C
static const FWIndicatorViewStyle FWIndicatorViewStyleDefault = 0 -
刷新指示器样式,用于框架Refresh等
Declaration
Objective-C
static const FWIndicatorViewStyle FWIndicatorViewStyleRefresh = 1
Constants Reference