| // Signature format: 3.0 |
| package androidx.paging { |
| |
| public class AsyncPagedListDiffer<T> { |
| ctor public AsyncPagedListDiffer(androidx.recyclerview.widget.RecyclerView.Adapter<?> adapter, androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback); |
| ctor public AsyncPagedListDiffer(androidx.recyclerview.widget.ListUpdateCallback listUpdateCallback, androidx.recyclerview.widget.AsyncDifferConfig<T> config); |
| method public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| method public void addPagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T> listener); |
| method public final void addPagedListListener(kotlin.jvm.functions.Function2<? super androidx.paging.PagedList<T>,? super androidx.paging.PagedList<T>,kotlin.Unit> callback); |
| method public androidx.paging.PagedList<T>? getCurrentList(); |
| method public T? getItem(int index); |
| method public int getItemCount(); |
| method public void removeLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| method public void removePagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T> listener); |
| method public final void removePagedListListener(kotlin.jvm.functions.Function2<? super androidx.paging.PagedList<T>,? super androidx.paging.PagedList<T>,kotlin.Unit> callback); |
| method public void submitList(androidx.paging.PagedList<T>? pagedList); |
| method public void submitList(androidx.paging.PagedList<T>? pagedList, Runnable? commitCallback); |
| property public androidx.paging.PagedList<T>? currentList; |
| property public int itemCount; |
| } |
| |
| public static interface AsyncPagedListDiffer.PagedListListener<T> { |
| method public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList); |
| } |
| |
| public final class AsyncPagedListDifferKt { |
| ctor public AsyncPagedListDifferKt(); |
| } |
| |
| public final class LivePagedListBuilder<Key, Value> { |
| ctor @Deprecated public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value> dataSourceFactory, androidx.paging.PagedList.Config config); |
| ctor @Deprecated public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value> dataSourceFactory, int pageSize); |
| ctor public LivePagedListBuilder(kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>> pagedSourceFactory, androidx.paging.PagedList.Config config); |
| ctor public LivePagedListBuilder(kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>> pagedSourceFactory, int pageSize); |
| method public androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> build(); |
| method public androidx.paging.LivePagedListBuilder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); |
| method public androidx.paging.LivePagedListBuilder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); |
| method public androidx.paging.LivePagedListBuilder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor); |
| method public androidx.paging.LivePagedListBuilder<Key,Value> setInitialLoadKey(Key? key); |
| } |
| |
| public final class LivePagedListKt { |
| ctor public LivePagedListKt(); |
| method @Deprecated public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> toLiveData(androidx.paging.DataSource.Factory<Key,Value>, androidx.paging.PagedList.Config config, Key? initialLoadKey = null, androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback = null, java.util.concurrent.Executor fetchExecutor = ArchTaskExecutor.getIOThreadExecutor()); |
| method @Deprecated public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> toLiveData(androidx.paging.DataSource.Factory<Key,Value>, int pageSize, Key? initialLoadKey = null, androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback = null, java.util.concurrent.Executor fetchExecutor = ArchTaskExecutor.getIOThreadExecutor()); |
| method public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> toLiveData(kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>>, androidx.paging.PagedList.Config config, Key? initialLoadKey = null, androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback = null, kotlinx.coroutines.CoroutineScope coroutineScope = GlobalScope, kotlinx.coroutines.CoroutineDispatcher fetchDispatcher = Dispatchers.IO); |
| method public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> toLiveData(kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>>, int pageSize, Key? initialLoadKey = null, androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback = null, kotlinx.coroutines.CoroutineScope coroutineScope = GlobalScope, kotlinx.coroutines.CoroutineDispatcher fetchDispatcher = Dispatchers.IO); |
| } |
| |
| public final class NullPaddedListDiffHelperKt { |
| ctor public NullPaddedListDiffHelperKt(); |
| } |
| |
| public abstract class PagedListAdapter<T, VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> extends androidx.recyclerview.widget.RecyclerView.Adapter<VH> { |
| ctor protected PagedListAdapter(androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback); |
| ctor protected PagedListAdapter(androidx.recyclerview.widget.AsyncDifferConfig<T> config); |
| method public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> callback); |
| method public androidx.paging.PagedList<T>? getCurrentList(); |
| method protected T? getItem(int position); |
| method public int getItemCount(); |
| method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? currentList); |
| method public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList); |
| method public void onLoadStateChanged(androidx.paging.LoadType type, androidx.paging.LoadState state); |
| method public void removeLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> callback); |
| method public void submitList(androidx.paging.PagedList<T>? pagedList); |
| method public void submitList(androidx.paging.PagedList<T>? pagedList, Runnable? commitCallback); |
| property public androidx.paging.PagedList<T>? currentList; |
| } |
| |
| } |
| |