TimeOrderedResultsController
public class TimeOrderedResultsController : TimeOrderedResultsControllerDataSourceObserver
A controller for managing results from a data source that inserts new items over time, and can load pages of older items.
This will call into its delegate to indicate when new items are inserted or old items have been loaded.
Note
Does not support random access. We don’t need it.-
Undocumented
Declaration
Swift
public private(set) weak var delegate: TimeOrderedResultsControllerDelegate?
-
Undocumented
Declaration
Swift
public private(set) var dataSource: TimeOrderedResultsControllerDataSource
-
Undocumented
Declaration
Swift
public init(dataSource: TimeOrderedResultsControllerDataSource, delegate: TimeOrderedResultsControllerDelegate, delegateQueue queue: DispatchQueue)
-
Load more items at the end of the results. The delegate will be notified via dataSourceOldResultsLoaded
Note
May call the delegate synchronously on the current queue.Declaration
Swift
public func loadMore(count: Int)
-
Declaration
Swift
public func dataSourceNewResultsInserted(items: [Any])
-
Undocumented
Declaration
Swift
public func dataSourceOldResultsLoaded(items: [Any])