createPagingDataFlow

fun <E : Any, Q : Any> IviDataSource<E, Q>.createPagingDataFlow(    pagingConfig: PagingConfig,     query: Q,     lifecycleOwner: LifecycleOwner): Flow<PagingData<E>>

The primary entry point into the Android Paging library from an IviDataSource instance.

Creates a Pager and returns a Flow of PagingData for the given query.

See Pager for more information.

Any PagingSource created by the Pager is invalidated when the given lifecycleOwner is destroyed. The given lifecycleOwner must stay active as long the returned Flow is used.


fun <E : Any, Q : Any> IviDataSource<E, Q>.createPagingDataFlow(    pagingConfig: PagingConfig,     queries: Collection<Q>,     lifecycleOwner: LifecycleOwner): Flow<PagingData<E>>

The primary entry point into the Android Paging library from an IviDataSource instance.

Creates a Pager and returns a Flow of PagingData for the all given queries. The result of the queries are concatenated after each other.

See Pager for more information.

Any PagingSource created by the Pager is invalidated when the given lifecycleOwner is destroyed. The given lifecycleOwner must stay active as long the returned Flow is used.

Note: All PagingSource implementations used in the queries must support placeholders. The PagingConfig.enablePlaceholders of pagingConfig must be true.