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