Google is committed to advancing racial equity for Black communities. See how.

ListenableFuturePagingSource

abstract class ListenableFuturePagingSource<Key : Any, Value : Any> : PagingSource<Key, Value>
kotlin.Any
   ↳ androidx.paging.PagingSource<Key, Value>
   ↳ androidx.paging.ListenableFuturePagingSource

ListenableFuture-based compatibility wrapper around PagingSource's suspending APIs.


//Unresolved: androidx.paging.samples.listenableFuturePagingSourceSample

Summary

Public constructors

ListenableFuture-based compatibility wrapper around PagingSource's suspending APIs.

Public methods
open suspend PagingSource.LoadResult<Key, Value>

Loading API for PagingSource.

abstract ListenableFuture<PagingSource.LoadResult<Key, Value>>

Loading API for PagingSource.

Inherited functions
Inherited properties

Public constructors

<init>

ListenableFuturePagingSource()

ListenableFuture-based compatibility wrapper around PagingSource's suspending APIs.


//Unresolved: androidx.paging.samples.listenableFuturePagingSourceSample

Public methods

load

open suspend fun load(params: PagingSource.LoadParams<Key>): PagingSource.LoadResult<Key, Value>

Loading API for PagingSource.

Implement this method to trigger your async load (e.g. from database or network).

loadFuture

abstract fun loadFuture(params: PagingSource.LoadParams<Key>): ListenableFuture<PagingSource.LoadResult<Key, Value>>

Loading API for PagingSource.

Implement this method to trigger your async load (e.g. from database or network).