RefreshPluginImpl
open class RefreshPluginImpl : NSObject, RefreshPlugin
默认刷新插件
-
单例模式
Declaration
Swift
@objc(sharedInstance) public static let shared: RefreshPluginImpl
-
上拉追加是否显示完成视图,默认true
Declaration
Swift
open var showsFinishedView: Bool
-
下拉刷新自定义句柄,开启时自动调用
Declaration
Swift
open var pullRefreshBlock: ((PullRefreshView) -> Void)?
-
上拉追加自定义句柄,开启时自动调用
Declaration
Swift
open var infiniteScrollBlock: ((InfiniteScrollView) -> Void)?
-
Declaration
Swift
open func isRefreshing(in scrollView: UIScrollView) -> Bool
-
Declaration
Swift
open func shouldRefreshing(in scrollView: UIScrollView) -> Bool
-
Declaration
Swift
open func setShouldRefreshing(_ shouldRefreshing: Bool, in scrollView: UIScrollView)
-
Declaration
Swift
open func setRefreshing(block: @escaping () -> Void, customBlock: ((Any) -> Void)?, in scrollView: UIScrollView)
-
Declaration
Swift
open func setRefreshing(target: Any, action: Selector, customBlock: ((Any) -> Void)?, in scrollView: UIScrollView)
-
Declaration
Swift
open func beginRefreshing(in scrollView: UIScrollView)
-
Declaration
Swift
open func endRefreshing(in scrollView: UIScrollView)
-
Declaration
Swift
open func isLoading(in scrollView: UIScrollView) -> Bool
-
Declaration
Swift
open func shouldLoading(in scrollView: UIScrollView) -> Bool
-
Declaration
Swift
open func setShouldLoading(_ shouldLoading: Bool, in scrollView: UIScrollView)
-
Declaration
Swift
open func loadingFinished(in scrollView: UIScrollView) -> Bool
-
Declaration
Swift
open func setLoadingFinished(_ loadingFinished: Bool, in scrollView: UIScrollView)
-
Declaration
Swift
open func setLoading(block: @escaping () -> Void, customBlock: ((Any) -> Void)?, in scrollView: UIScrollView)
-
Declaration
Swift
open func setLoading(target: Any, action: Selector, customBlock: ((Any) -> Void)?, in scrollView: UIScrollView)
-
Declaration
Swift
open func beginLoading(in scrollView: UIScrollView)
-
Declaration
Swift
open func endLoading(in scrollView: UIScrollView)