Type Definitions
The following type definitions are available globally.
-
屏幕尺寸可扩展枚举
Declaration
Objective-C
typedef NSInteger FWScreenInch
-
弹框样式枚举,可扩展
Declaration
Objective-C
typedef NSInteger FWAlertStyle
-
图片格式可扩展枚举
Declaration
Objective-C
typedef NSInteger FWImageFormat
-
Undocumented
Declaration
Objective-C
typedef void (^FWWriteAssetCompletionBlock)(FWAsset * _Nullable asset, NSError * _Nullable error)
-
Undocumented
Declaration
Objective-C
typedef void(^FWAttributedLinkDetectCompletion)(NSArray<FWAttributedLabelURL *> * _Nullable links)
-
Undocumented
Declaration
Objective-C
typedef void(^FWBarrageTouchAction)(__weak FWBarrageDescriptor *descriptor)
-
Undocumented
Declaration
Objective-C
typedef void(^FWBarrageCellTouchedAction)(__weak FWBarrageDescriptor *descriptor, __weak FWBarrageCell *cell)
-
Undocumented
Declaration
Objective-C
typedef void (^FWConstructingBlock)(id<FWMultipartFormData> formData)
-
Undocumented
Declaration
Objective-C
typedef void (^FWURLSessionTaskProgressBlock)(NSProgress *)
-
Undocumented
Declaration
Objective-C
typedef void(^FWRequestCompletionBlock)(__kindof FWBaseRequest *request)
-
通用不带参数block
Declaration
Objective-C
typedef void (^FWBlockVoid)(void)
-
通用id参数block
Declaration
Objective-C
typedef void (^FWBlockParam)(id _Nullable __strong)
Parameters
param
id参数
-
通用bool参数block
Declaration
Objective-C
typedef void (^FWBlockBool)(BOOL)
Parameters
isTrue
bool参数
-
通用NSInteger参数block
Declaration
Objective-C
typedef void (^FWBlockInt)(NSInteger)
Parameters
index
NSInteger参数
-
通用double参数block
Declaration
Objective-C
typedef void (^FWBlockDouble)(double)
Parameters
value
double参数
-
通用(BOOL,id)参数block
Declaration
Objective-C
typedef void (^FWBlockBoolParam)(BOOL, id _Nullable __strong)
Parameters
isTrue
BOOL参数
param
id参数
-
通用(NSInteger,id)参数block
Declaration
Objective-C
typedef void (^FWBlockIntParam)(NSInteger, id _Nullable __strong)
Parameters
index
NSInteger参数
param
id参数
-
缓存类型枚举
Declaration
Objective-C
typedef NSInteger FWCacheType
-
The chain callback called when one request finished
Declaration
Objective-C
typedef void (^FWChainCallback)(FWChainRequest *_Nonnull __strong, FWBaseRequest *_Nonnull __strong)
-
Undocumented
Declaration
Objective-C
typedef void(^FWCellConfigurationBlock)(__kindof UITableViewCell *cell)
-
Undocumented
Declaration
Objective-C
typedef void(^FWCellIndexPathBlock)(__kindof UITableViewCell *cell, NSIndexPath *indexPath)
-
Undocumented
Declaration
Objective-C
typedef void(^FWHeaderFooterViewConfigurationBlock)(__kindof UITableViewHeaderFooterView *headerFooterView)
-
Undocumented
Declaration
Objective-C
typedef void(^FWHeaderFooterViewSectionBlock)(__kindof UITableViewHeaderFooterView *headerFooterView, NSInteger section)
-
Undocumented
Declaration
Objective-C
typedef void(^FWCollectionCellConfigurationBlock)(__kindof UICollectionViewCell *cell)
-
Undocumented
Declaration
Objective-C
typedef void(^FWCollectionCellIndexPathBlock)(__kindof UICollectionViewCell *cell, NSIndexPath *indexPath)
-
Undocumented
Declaration
Objective-C
typedef void(^FWReusableViewConfigurationBlock)(__kindof UICollectionReusableView *reusableView)
-
Undocumented
Declaration
Objective-C
typedef void(^FWReusableViewIndexPathBlock)(__kindof UICollectionReusableView *reusableView, NSIndexPath *indexPath)
-
本地图片解码编码选项,默认兼容SDWebImage
Declaration
Objective-C
typedef NSString *FWImageCoderOptions
-
自定义指示器视图动画类型枚举,可扩展
Declaration
Objective-C
typedef NSInteger FWIndicatorViewAnimationType
-
模块优先级可扩展枚举
Declaration
Objective-C
typedef NSUInteger FWModulePriority
-
导航栏全局样式可扩展枚举
Declaration
Objective-C
typedef NSInteger FWNavigationBarStyle
-
路由处理句柄,仅支持openURL时可返回nil
Declaration
Objective-C
typedef id _Nullable (^FWRouterHandler)(FWRouterContext *_Nonnull __strong)
-
路由完成句柄,openURL时可设置完成回调
Declaration
Objective-C
typedef void (^FWRouterCompletion)(id _Nullable __strong)
-
路由用户信息Key定义
Declaration
Objective-C
typedef NSString *FWRouterUserInfoKey
-
Undocumented
Declaration
Objective-C
typedef void (^FWIndexChangeBlock)(NSUInteger index)
-
Undocumented
Declaration
Objective-C
typedef NSAttributedString *_Nonnull(^FWTitleFormatterBlock)(FWSegmentedControl *segmentedControl, NSString *title, NSUInteger index, BOOL selected)
-
统计通用block,参数object为FWStatisticalObject统计对象
Declaration
Objective-C
typedef void (^FWStatisticalBlock)(FWStatisticalObject *_Nonnull __strong)
-
统计点击回调block,参数cell为表格子cell,indexPath为表格子cell所在位置
Declaration
Objective-C
typedef void (^FWStatisticalClickCallback)(__kindof UIView *_Nullable __strong, NSIndexPath *_Nullable __strong)
-
统计曝光回调block,参数cell为表格子cell,indexPath为表格子cell所在位置,duration为曝光时长(0表示开始)
Declaration
Objective-C
typedef void (^FWStatisticalExposureCallback)( __kindof UIView *_Nullable __strong, NSIndexPath *_Nullable __strong, NSTimeInterval)
-
主题样式枚举,可扩展
Declaration
Objective-C
typedef NSInteger FWThemeStyle
-
主题模式枚举,可扩展(扩展值与样式值相同即可)
Declaration
Objective-C
typedef NSInteger FWThemeMode
-
消息吐司样式枚举,可扩展
Declaration
Objective-C
typedef NSInteger FWToastStyle
-
进度条视图样式枚举,可扩展
Declaration
Objective-C
typedef NSInteger FWProgressViewStyle
-
指示器视图样式枚举,可扩展
Declaration
Objective-C
typedef NSInteger FWIndicatorViewStyle
-
Undocumented
Declaration
Objective-C
typedef void (^FWJsBridgeResponseCallback)(id responseData)
-
Undocumented
Declaration
Objective-C
typedef void (^FWJsBridgeHandler)(id data, FWJsBridgeResponseCallback responseCallback)
-
Undocumented
Declaration
Objective-C
typedef void (^FWJsBridgeErrorHandler)(NSString *handlerName, id data, FWJsBridgeResponseCallback responseCallback)
-
Undocumented
Declaration
Objective-C
typedef BOOL (^FWJsBridgeFilterHandler)(NSString *handlerName, id data, FWJsBridgeResponseCallback responseCallback)
-
Undocumented
Declaration
Objective-C
typedef NSDictionary FWJsBridgeMessage