Type Definitions

The following type definitions are available globally.

FWScreenClassWrapper+FWAdaptive

  • 屏幕尺寸可扩展枚举

    Declaration

    Objective-C

    typedef NSInteger FWScreenInch

FWBlock

  • 通用不带参数block

    Declaration

    Objective-C

    typedef void (^FWBlockVoid)(void)
  • 通用id参数block

    Declaration

    Objective-C

    typedef void (^FWBlockParam)(id _Nullable)

    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)

    Parameters

    isTrue

    BOOL参数

    param

    id参数

FWTableViewCellWrapper+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

FWTableViewHeaderFooterViewWrapper+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

FWCollectionViewCellWrapper+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

FWCollectionReusableViewWrapper+FWDynamicLayout

  • Undocumented

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

FWRouterContext

  • 路由处理句柄,仅支持openURL时可返回nil

    Declaration

    Objective-C

    typedef id _Nullable (^FWRouterHandler)(FWRouterContext *_Nonnull)
  • 路由完成句柄,openURL时可设置完成回调

    Declaration

    Objective-C

    typedef void (^FWRouterCompletion)(id _Nullable)

FWThemeManager

  • 主题样式枚举,可扩展

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    typedef NSInteger FWThemeMode