blob: f6bd0de38ae0a4148bce09f444e251202560dd73 [file] [log] [blame]
// Signature format: 3.0
package androidx.paging {
public class AsyncPagedListDiffer<T> {
ctor public AsyncPagedListDiffer(androidx.recyclerview.widget.RecyclerView.Adapter, androidx.recyclerview.widget.DiffUtil.ItemCallback<T>);
ctor public AsyncPagedListDiffer(androidx.recyclerview.widget.ListUpdateCallback, androidx.recyclerview.widget.AsyncDifferConfig<T>);
method public void addLoadStateListener(androidx.paging.PagedList.LoadStateListener);
method public void addPagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T>);
method public androidx.paging.PagedList<T>? getCurrentList();
method public T? getItem(int);
method public int getItemCount();
method public void removeLoadStateListListener(androidx.paging.PagedList.LoadStateListener);
method public void removePagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T>);
method public void submitList(androidx.paging.PagedList<T>?);
method public void submitList(androidx.paging.PagedList<T>?, Runnable?);
}
public static interface AsyncPagedListDiffer.PagedListListener<T> {
method public void onCurrentListChanged(androidx.paging.PagedList<T>?, androidx.paging.PagedList<T>?);
}
public final class LivePagedListBuilder<Key, Value> {
ctor public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value>, androidx.paging.PagedList.Config);
ctor public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value>, int);
method public androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> build();
method public androidx.paging.LivePagedListBuilder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>?);
method public androidx.paging.LivePagedListBuilder<Key,Value> setFetchExecutor(java.util.concurrent.Executor);
method public androidx.paging.LivePagedListBuilder<Key,Value> setInitialLoadKey(Key?);
}
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>);
ctor protected PagedListAdapter(androidx.recyclerview.widget.AsyncDifferConfig<T>);
method public void addLoadStateListener(androidx.paging.PagedList.LoadStateListener!);
method public androidx.paging.PagedList<T>? getCurrentList();
method protected T? getItem(int);
method public int getItemCount();
method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>?);
method public void onCurrentListChanged(androidx.paging.PagedList<T>?, androidx.paging.PagedList<T>?);
method public void onLoadStateChanged(androidx.paging.PagedList.LoadType, androidx.paging.PagedList.LoadState, Throwable?);
method public void removeLoadStateListener(androidx.paging.PagedList.LoadStateListener!);
method public void submitList(androidx.paging.PagedList<T>?);
method public void submitList(androidx.paging.PagedList<T>?, Runnable?);
}
}