PagingSourceFactory


public fun interface PagingSourceFactory<Key extends Object, Value extends Object>

Known direct subclasses
InvalidatingPagingSourceFactory

Wrapper class for a PagingSource factory intended for usage in Pager construction.


Interface for a factory that generates PagingSource.

The factory extending this interface can be used to instantiate a Pager as the pagingSourceFactory.

Summary

Public methods

abstract @NonNull PagingSource<@NonNull Key, @NonNull Value>

Returns a new PagingSource instance.

Public methods

invoke

Added in 3.2.0
abstract @NonNull PagingSource<@NonNull Key, @NonNull Value> invoke()

Returns a new PagingSource instance.

This function can be invoked by calling pagingSourceFactory() or pagingSourceFactory::invoke.