FWRefreshPlugin

@protocol FWRefreshPlugin <NSObject>

刷新插件协议,应用可自定义刷新插件实现

Refreshing

  • 是否正在刷新中

    Declaration

    Objective-C

    - (BOOL)isRefreshing:(nonnull UIScrollView *)scrollView;
  • 是否显示刷新组件

    Declaration

    Objective-C

    - (BOOL)showRefreshing:(nonnull UIScrollView *)scrollView;
  • 设置是否显示刷新组件

    Declaration

    Objective-C

    - (void)setShowRefreshing:(BOOL)showRefreshing
                   scrollView:(nonnull UIScrollView *)scrollView;
  • 配置下拉刷新句柄

    Declaration

    Objective-C

    - (void)setRefreshingBlock:(nonnull void (^)(void))block
                    scrollView:(nonnull UIScrollView *)scrollView;
  • 配置下拉刷新事件

    Declaration

    Objective-C

    - (void)setRefreshingTarget:(nonnull id)target
                         action:(nonnull SEL)action
                     scrollView:(nonnull UIScrollView *)scrollView;
  • 开始下拉刷新

    Declaration

    Objective-C

    - (void)beginRefreshing:(nonnull UIScrollView *)scrollView;
  • 结束下拉刷新

    Declaration

    Objective-C

    - (void)endRefreshing:(nonnull UIScrollView *)scrollView;

Loading

  • 是否正在追加中

    Declaration

    Objective-C

    - (BOOL)isLoading:(nonnull UIScrollView *)scrollView;
  • 是否显示追加组件

    Declaration

    Objective-C

    - (BOOL)showLoading:(nonnull UIScrollView *)scrollView;
  • 设置是否显示追加组件

    Declaration

    Objective-C

    - (void)setShowLoading:(BOOL)showLoading
                scrollView:(nonnull UIScrollView *)scrollView;
  • 配置上拉追加句柄

    Declaration

    Objective-C

    - (void)setLoadingBlock:(nonnull void (^)(void))block
                 scrollView:(nonnull UIScrollView *)scrollView;
  • 配置上拉追加事件

    Declaration

    Objective-C

    - (void)setLoadingTarget:(nonnull id)target
                      action:(nonnull SEL)action
                  scrollView:(nonnull UIScrollView *)scrollView;
  • 开始上拉追加

    Declaration

    Objective-C

    - (void)beginLoading:(nonnull UIScrollView *)scrollView;
  • 结束上拉追加

    Declaration

    Objective-C

    - (void)endLoading:(nonnull UIScrollView *)scrollView;