InfiniteListDelegate
public protocol InfiniteListDelegate : AnyObject
InfiniteListDelegate defines the action triggered in the list.
Version
1.5.0Date
01/09/2019-
When load more action is activated.
Declaration
Swift
func infiniteList(_ infiniteList: InfiniteList, didRequireLoadPage page: Int)Parameters
pageIndexThe page index.
-
When reload action is activated.
Declaration
Swift
func infiniteListDidRequireReload(_ infiniteList: InfiniteList) -
infiniteListDidScroll(_:Default implementation) When the list is scrolled.
Default Implementation
Declaration
Swift
func infiniteListDidScroll(_ infiniteList: InfiniteList) -
When the item is deleted.
Declaration
Swift
func infiniteList(_ infiniteList: InfiniteList, didDeleteItem item: Any)Parameters
itemThe item to be deleted.
-
An item is selected.
Declaration
Swift
func infiniteList(_ infiniteList: InfiniteList, didSelectItem item: Any)Parameters
itemThe item of the cell that is selected.
InfiniteListDelegate Protocol Reference