blob: 63821756df3594203143c39ccfb3ccf25597379f [file] [log] [blame]
Alan Viverettecd1aae02019-08-28 15:28:57 -04001// Signature format: 3.0
2package androidx.paging {
3
Dustin Lamdec5e162020-02-04 13:46:59 -08004 @Deprecated public class AsyncPagedListDiffer<T> {
5 ctor @Deprecated public AsyncPagedListDiffer(androidx.recyclerview.widget.RecyclerView.Adapter<?> adapter, androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback);
6 ctor @Deprecated public AsyncPagedListDiffer(androidx.recyclerview.widget.ListUpdateCallback listUpdateCallback, androidx.recyclerview.widget.AsyncDifferConfig<T> config);
7 method @Deprecated public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
8 method @Deprecated public void addPagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T> listener);
9 method @Deprecated public final void addPagedListListener(kotlin.jvm.functions.Function2<? super androidx.paging.PagedList<T>,? super androidx.paging.PagedList<T>,kotlin.Unit> callback);
10 method @Deprecated public androidx.paging.PagedList<T>? getCurrentList();
11 method @Deprecated public T? getItem(int index);
12 method @Deprecated public int getItemCount();
13 method @Deprecated public void removeLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
14 method @Deprecated public void removePagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T> listener);
15 method @Deprecated public final void removePagedListListener(kotlin.jvm.functions.Function2<? super androidx.paging.PagedList<T>,? super androidx.paging.PagedList<T>,kotlin.Unit> callback);
16 method @Deprecated public void submitList(androidx.paging.PagedList<T>? pagedList);
17 method @Deprecated public void submitList(androidx.paging.PagedList<T>? pagedList, Runnable? commitCallback);
Alan Viverettecd1aae02019-08-28 15:28:57 -040018 property public androidx.paging.PagedList<T>? currentList;
19 property public int itemCount;
20 }
21
Dustin Lamdec5e162020-02-04 13:46:59 -080022 @Deprecated public static interface AsyncPagedListDiffer.PagedListListener<T> {
23 method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList);
Alan Viverettecd1aae02019-08-28 15:28:57 -040024 }
25
Dustin Lam4b8e0d02020-01-09 15:55:17 -080026 public class AsyncPagingDataDiffer<T> {
27 ctor public AsyncPagingDataDiffer(kotlinx.coroutines.CoroutineDispatcher mainDispatcher, kotlinx.coroutines.CoroutineDispatcher workerDispatcher, androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback, androidx.recyclerview.widget.ListUpdateCallback updateCallback);
28 method public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
Dustin Lam4b8e0d02020-01-09 15:55:17 -080029 method public T? getItem(int index);
30 method public int getItemCount();
Dustin Lam8541fbb2020-03-06 12:14:38 -080031 method public final suspend Object? presentData(androidx.paging.PagingData<T> pagingData, kotlin.coroutines.Continuation<? super kotlin.Unit> p);
Chris Craikb92dd932020-01-09 15:39:24 -080032 method public final void refresh();
Dustin Lam4b8e0d02020-01-09 15:55:17 -080033 method public void removeLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
34 method public final void retry();
Dustin Lame58e7a02020-02-25 09:54:10 -080035 method public final void submitData(androidx.lifecycle.Lifecycle lifecycle, androidx.paging.PagingData<T> pagingData);
Dustin Lam4b8e0d02020-01-09 15:55:17 -080036 property public int itemCount;
37 }
38
Alan Viverettecd1aae02019-08-28 15:28:57 -040039 public final class LivePagedListBuilder<Key, Value> {
40 ctor @Deprecated public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value> dataSourceFactory, androidx.paging.PagedList.Config config);
41 ctor @Deprecated public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value> dataSourceFactory, int pageSize);
Dustin Lambd4b6132020-01-31 17:06:25 -080042 ctor @Deprecated public LivePagedListBuilder(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory, androidx.paging.PagedList.Config config);
43 ctor @Deprecated public LivePagedListBuilder(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory, int pageSize);
Alan Viverettecd1aae02019-08-28 15:28:57 -040044 method public androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> build();
45 method public androidx.paging.LivePagedListBuilder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback);
46 method public androidx.paging.LivePagedListBuilder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope);
47 method public androidx.paging.LivePagedListBuilder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor);
48 method public androidx.paging.LivePagedListBuilder<Key,Value> setInitialLoadKey(Key? key);
49 }
50
51 public final class LivePagedListKt {
Alan Viverettecd1aae02019-08-28 15:28:57 -040052 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());
53 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());
Dustin Lambd4b6132020-01-31 17:06:25 -080054 method @Deprecated public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> toLiveData(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<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);
55 method @Deprecated public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> toLiveData(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<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);
Alan Viverettecd1aae02019-08-28 15:28:57 -040056 }
57
Chris Craikf9449842020-02-24 20:49:48 -080058 public abstract class LoadStateAdapter<VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> extends androidx.recyclerview.widget.RecyclerView.Adapter<VH> {
59 ctor public LoadStateAdapter();
60 method public boolean displayLoadStateAsItem(androidx.paging.LoadState loadState);
61 method public final int getItemCount();
62 method public final int getItemViewType(int position);
63 method public final androidx.paging.LoadState getLoadState();
64 method public int getStateViewType(androidx.paging.LoadState loadState);
65 method public final void onBindViewHolder(VH holder, int position);
66 method public abstract void onBindViewHolder(VH holder, androidx.paging.LoadState loadState);
67 method public final VH onCreateViewHolder(android.view.ViewGroup parent, int viewType);
68 method public abstract VH onCreateViewHolder(android.view.ViewGroup parent, androidx.paging.LoadState loadState);
69 method public final void setLoadState(androidx.paging.LoadState loadState);
70 property public final androidx.paging.LoadState loadState;
71 }
72
Aurimas Liutikas15e364c2019-09-05 16:14:55 -070073 public final class NullPaddedListDiffHelperKt {
Aurimas Liutikas15e364c2019-09-05 16:14:55 -070074 }
75
Dustin Lam3d0df3f2020-01-31 17:16:08 -080076 @Deprecated public abstract class PagedListAdapter<T, VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> extends androidx.recyclerview.widget.RecyclerView.Adapter<VH> {
77 ctor @Deprecated protected PagedListAdapter(androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback);
78 ctor @Deprecated protected PagedListAdapter(androidx.recyclerview.widget.AsyncDifferConfig<T> config);
79 method @Deprecated public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
80 method @Deprecated public androidx.paging.PagedList<T>? getCurrentList();
81 method @Deprecated protected T? getItem(int position);
82 method @Deprecated public int getItemCount();
Alan Viverettecd1aae02019-08-28 15:28:57 -040083 method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? currentList);
Dustin Lam3d0df3f2020-01-31 17:16:08 -080084 method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList);
85 method @Deprecated public void removeLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
86 method @Deprecated public void submitList(androidx.paging.PagedList<T>? pagedList);
87 method @Deprecated public void submitList(androidx.paging.PagedList<T>? pagedList, Runnable? commitCallback);
Chris Craikf9449842020-02-24 20:49:48 -080088 method @Deprecated public final androidx.recyclerview.widget.MergeAdapter withLoadStateFooter(androidx.paging.LoadStateAdapter<?> footer);
89 method @Deprecated public final androidx.recyclerview.widget.MergeAdapter withLoadStateHeader(androidx.paging.LoadStateAdapter<?> header);
90 method @Deprecated public final androidx.recyclerview.widget.MergeAdapter withLoadStateHeaderAndFooter(androidx.paging.LoadStateAdapter<?> header, androidx.paging.LoadStateAdapter<?> footer);
Alan Viverettecd1aae02019-08-28 15:28:57 -040091 property public androidx.paging.PagedList<T>? currentList;
92 }
93
Dustin Lam4b8e0d02020-01-09 15:55:17 -080094 public abstract class PagingDataAdapter<T, VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> extends androidx.recyclerview.widget.RecyclerView.Adapter<VH> {
Dustin Lam25f5f072020-01-28 12:19:36 +000095 ctor public PagingDataAdapter(androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback, kotlinx.coroutines.CoroutineDispatcher mainDispatcher, kotlinx.coroutines.CoroutineDispatcher workerDispatcher);
Dustin Lam4b8e0d02020-01-09 15:55:17 -080096 method public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
Dustin Lam4b8e0d02020-01-09 15:55:17 -080097 method protected T? getItem(int position);
98 method public int getItemCount();
Dustin Lamab9a19a2020-04-17 20:19:05 -070099 method public final long getItemId(int position);
Louis Pullen-Freilicheb86a042020-04-30 12:35:30 +0100100 method public final suspend Object? presentData(androidx.paging.PagingData<T> pagingData, kotlin.coroutines.Continuation<? super kotlin.Unit> p);
Chris Craikb92dd932020-01-09 15:39:24 -0800101 method public final void refresh();
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800102 method public void removeLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
103 method public final void retry();
Dustin Lame58e7a02020-02-25 09:54:10 -0800104 method public final void submitData(androidx.lifecycle.Lifecycle lifecycle, androidx.paging.PagingData<T> pagingData);
Chris Craikf9449842020-02-24 20:49:48 -0800105 method public final androidx.recyclerview.widget.MergeAdapter withLoadStateFooter(androidx.paging.LoadStateAdapter<?> footer);
106 method public final androidx.recyclerview.widget.MergeAdapter withLoadStateHeader(androidx.paging.LoadStateAdapter<?> header);
107 method public final androidx.recyclerview.widget.MergeAdapter withLoadStateHeaderAndFooter(androidx.paging.LoadStateAdapter<?> header, androidx.paging.LoadStateAdapter<?> footer);
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800108 }
109
Dustin Lam84cc4902020-04-10 14:50:35 -0700110 public final class PagingLiveData {
111 method public static <T> androidx.lifecycle.LiveData<androidx.paging.PagingData<T>> cachedIn(androidx.lifecycle.LiveData<androidx.paging.PagingData<T>>, androidx.lifecycle.Lifecycle lifecycle);
112 method public static <T> androidx.lifecycle.LiveData<androidx.paging.PagingData<T>> cachedIn(androidx.lifecycle.LiveData<androidx.paging.PagingData<T>>, kotlinx.coroutines.CoroutineScope scope);
113 method public static <Key, Value> androidx.lifecycle.LiveData<androidx.paging.PagingData<Value>> getLiveData(androidx.paging.Pager<Key,Value>);
114 }
115
Alan Viverettecd1aae02019-08-28 15:28:57 -0400116}
117