Type Definitions

The following type definitions are available globally.

UIScreen+FWAdaptive

  • 屏幕尺寸可扩展枚举

    Declaration

    Objective-C

    typedef NSInteger FWScreenInch

FWAlertPlugin

  • 弹框样式枚举,可扩展

    Declaration

    Objective-C

    typedef NSInteger FWAlertStyle

UIImage+FWAnimated

  • 图片格式可扩展枚举

    Declaration

    Objective-C

    typedef NSInteger FWImageFormat

FWAssetManager

FWAttributedLabelURLDetector

FWBlock

  • 通用不带参数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)

UITableViewCell+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWCellConfigurationBlock)(__kindof UITableViewCell *cell)
  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWCellIndexPathBlock)(__kindof UITableViewCell *cell, NSIndexPath *indexPath)

UITableViewHeaderFooterView+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWHeaderFooterViewConfigurationBlock)(__kindof UITableViewHeaderFooterView *headerFooterView)
  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWHeaderFooterViewSectionBlock)(__kindof UITableViewHeaderFooterView *headerFooterView, NSInteger section)

UICollectionViewCell+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWCollectionCellConfigurationBlock)(__kindof UICollectionViewCell *cell)
  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWCollectionCellIndexPathBlock)(__kindof UICollectionViewCell *cell, NSIndexPath *indexPath)

UICollectionReusableView+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWReusableViewConfigurationBlock)(__kindof UICollectionReusableView *reusableView)
  • Undocumented

    Declaration

    Objective-C

    typedef void(^FWReusableViewIndexPathBlock)(__kindof UICollectionReusableView *reusableView, NSIndexPath *indexPath)

FWImagePlugin

  • 本地图片解码编码选项,默认兼容SDWebImage

    Declaration

    Objective-C

    typedef NSString *FWImageCoderOptions

FWIndicatorView

  • 自定义指示器视图动画类型枚举,可扩展

    Declaration

    Objective-C

    typedef NSInteger FWIndicatorViewAnimationType

FWModulePriority

  • 模块优先级可扩展枚举

    Declaration

    Objective-C

    typedef NSUInteger FWModulePriority

FWNavigationBarAppearance

  • 导航栏全局样式可扩展枚举

    Declaration

    Objective-C

    typedef NSInteger FWNavigationBarStyle

FWRouterContext

  • 路由处理句柄,仅支持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)

FWStatistical

  • 统计通用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)

FWThemeManager

  • 主题样式枚举,可扩展

    Declaration

    Objective-C

    typedef NSInteger FWThemeStyle
  • 主题模式枚举,可扩展(扩展值与样式值相同即可)

    Declaration

    Objective-C

    typedef NSInteger FWThemeMode

FWToastPlugin

  • 消息吐司样式枚举,可扩展

    Declaration

    Objective-C

    typedef NSInteger FWToastStyle

FWProgressViewPlugin

  • 进度条视图样式枚举,可扩展

    Declaration

    Objective-C

    typedef NSInteger FWProgressViewStyle

FWIndicatorViewPlugin

  • 指示器视图样式枚举,可扩展

    Declaration

    Objective-C

    typedef NSInteger FWIndicatorViewStyle

FWWebViewBridge