IviDataSourceWrapper
Wraps an IviDataSource to keep track of its active IviPagingSources to be able to invalidate them when markAsUnavailable is called.
Constructors
Inherited properties
true
if this IviDataSource supports jumping, false
otherwise.
true
if IviPagingSource created by createPagingSource or createPagingSourceFlow expects to re-use keys to load distinct pages without a call to invalidate, false
otherwise. See PagingSource.keyReuseSupported for details.
Functions
Creates an IviPagingSource for the given query. The page source is invalidated when the given lifecycleOwner is destroyed.
Same as createPagingSource except that this variant returns a Flow. The benefit of this variant is that it does not require a LifecycleOwner as we can use the Flow cancellation to invalidate the IviPagingSource. This variant is ideal for creating a Flow/LiveData transformation.