RefreshPlugin
@MainActor
public protocol RefreshPlugin : AnyObject
刷新插件协议,应用可自定义刷新插件实现
-
isRefreshing(in:
Default implementation) 是否正在刷新中
Default Implementation
默认实现,是否正在刷新中
Declaration
Swift
@MainActor func isRefreshing(in scrollView: UIScrollView) -> Bool
-
shouldRefreshing(in:
Default implementation) 是否显示刷新组件
Default Implementation
默认实现,是否显示刷新组件
Declaration
Swift
@MainActor func shouldRefreshing(in scrollView: UIScrollView) -> Bool
-
setShouldRefreshing(_:
Default implementationin: ) 设置是否显示刷新组件
Default Implementation
默认实现,设置是否显示刷新组件
Declaration
Swift
@MainActor func setShouldRefreshing(_ shouldRefreshing: Bool, in scrollView: UIScrollView)
-
setRefreshing(block:
Default implementationcustomBlock: in: ) 配置下拉刷新句柄
Default Implementation
默认实现,配置下拉刷新句柄
Declaration
Swift
@MainActor func setRefreshing(block: @escaping @MainActor @Sendable () -> Void, customBlock: (@MainActor @Sendable (Any) -> Void)?, in scrollView: UIScrollView)
-
setRefreshing(target:
Default implementationaction: customBlock: in: ) 配置下拉刷新事件
Default Implementation
默认实现,配置下拉刷新事件
Declaration
Swift
@MainActor func setRefreshing(target: Any, action: Selector, customBlock: (@MainActor @Sendable (Any) -> Void)?, in scrollView: UIScrollView)
-
beginRefreshing(in:
Default implementation) 开始下拉刷新
Default Implementation
默认实现,开始下拉刷新
Declaration
Swift
@MainActor func beginRefreshing(in scrollView: UIScrollView)
-
endRefreshing(in:
Default implementation) 结束下拉刷新
Default Implementation
默认实现,结束下拉刷新
Declaration
Swift
@MainActor func endRefreshing(in scrollView: UIScrollView)
-
isLoading(in:
Default implementation) 是否正在追加中
Default Implementation
默认实现,是否正在追加中
Declaration
Swift
@MainActor func isLoading(in scrollView: UIScrollView) -> Bool
-
shouldLoading(in:
Default implementation) 是否显示追加组件
Default Implementation
默认实现,是否显示追加组件
Declaration
Swift
@MainActor func shouldLoading(in scrollView: UIScrollView) -> Bool
-
setShouldLoading(_:
Default implementationin: ) 设置是否显示追加组件
Default Implementation
默认实现,设置是否显示追加组件
Declaration
Swift
@MainActor func setShouldLoading(_ shouldLoading: Bool, in scrollView: UIScrollView)
-
loadingFinished(in:
Default implementation) 是否已追加完成,不能继续追加
Default Implementation
默认实现,是否已追加完成,不能继续追加
Declaration
Swift
@MainActor func loadingFinished(in scrollView: UIScrollView) -> Bool
-
setLoadingFinished(_:
Default implementationin: ) 设置是否已追加完成,不能继续追加
Default Implementation
默认实现,设置是否已追加完成,不能继续追加
Declaration
Swift
@MainActor func setLoadingFinished(_ loadingFinished: Bool, in scrollView: UIScrollView)
-
setLoading(block:
Default implementationcustomBlock: in: ) 配置上拉追加句柄
Default Implementation
默认实现,配置上拉追加句柄
Declaration
Swift
@MainActor func setLoading(block: @escaping @MainActor @Sendable () -> Void, customBlock: (@MainActor @Sendable (Any) -> Void)?, in scrollView: UIScrollView)
-
setLoading(target:
Default implementationaction: customBlock: in: ) 配置上拉追加事件
Default Implementation
默认实现,配置上拉追加事件
Declaration
Swift
@MainActor func setLoading(target: Any, action: Selector, customBlock: (@MainActor @Sendable (Any) -> Void)?, in scrollView: UIScrollView)
-
beginLoading(in:
Default implementation) 开始上拉追加
Default Implementation
默认实现,开始上拉追加
Declaration
Swift
@MainActor func beginLoading(in scrollView: UIScrollView)
-
endLoading(in:
Default implementation) 结束上拉追加
Default Implementation
默认实现,结束上拉追加
Declaration
Swift
@MainActor func endLoading(in scrollView: UIScrollView)