Alan Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 1 | // Signature format: 3.0 |
| 2 | package androidx.paging { |
| 3 | |
Dustin Lam | dec5e16 | 2020-02-04 13:46:59 -0800 | [diff] [blame] | 4 | @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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 18 | property public androidx.paging.PagedList<T>? currentList; |
| 19 | property public int itemCount; |
| 20 | } |
| 21 | |
Dustin Lam | dec5e16 | 2020-02-04 13:46:59 -0800 | [diff] [blame] | 22 | @Deprecated public static interface AsyncPagedListDiffer.PagedListListener<T> { |
| 23 | method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList); |
Alan Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 24 | } |
| 25 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 26 | 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 Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 29 | method public T? getItem(int index); |
| 30 | method public int getItemCount(); |
Dustin Lam | 8541fbb | 2020-03-06 12:14:38 -0800 | [diff] [blame] | 31 | method public final suspend Object? presentData(androidx.paging.PagingData<T> pagingData, kotlin.coroutines.Continuation<? super kotlin.Unit> p); |
Chris Craik | b92dd93 | 2020-01-09 15:39:24 -0800 | [diff] [blame] | 32 | method public final void refresh(); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 33 | 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 Lam | e58e7a0 | 2020-02-25 09:54:10 -0800 | [diff] [blame] | 35 | method public final void submitData(androidx.lifecycle.Lifecycle lifecycle, androidx.paging.PagingData<T> pagingData); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 36 | property public int itemCount; |
| 37 | } |
| 38 | |
Alan Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 39 | 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 Lam | bd4b613 | 2020-01-31 17:06:25 -0800 | [diff] [blame] | 42 | 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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 44 | 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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 52 | 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 Lam | bd4b613 | 2020-01-31 17:06:25 -0800 | [diff] [blame] | 54 | 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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 56 | } |
| 57 | |
Chris Craik | f944984 | 2020-02-24 20:49:48 -0800 | [diff] [blame] | 58 | 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 Liutikas | 15e364c | 2019-09-05 16:14:55 -0700 | [diff] [blame] | 73 | public final class NullPaddedListDiffHelperKt { |
Aurimas Liutikas | 15e364c | 2019-09-05 16:14:55 -0700 | [diff] [blame] | 74 | } |
| 75 | |
Dustin Lam | 3d0df3f | 2020-01-31 17:16:08 -0800 | [diff] [blame] | 76 | @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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 83 | method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? currentList); |
Dustin Lam | 3d0df3f | 2020-01-31 17:16:08 -0800 | [diff] [blame] | 84 | 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 Craik | f944984 | 2020-02-24 20:49:48 -0800 | [diff] [blame] | 88 | 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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 91 | property public androidx.paging.PagedList<T>? currentList; |
| 92 | } |
| 93 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 94 | public abstract class PagingDataAdapter<T, VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> extends androidx.recyclerview.widget.RecyclerView.Adapter<VH> { |
Dustin Lam | 25f5f07 | 2020-01-28 12:19:36 +0000 | [diff] [blame] | 95 | ctor public PagingDataAdapter(androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback, kotlinx.coroutines.CoroutineDispatcher mainDispatcher, kotlinx.coroutines.CoroutineDispatcher workerDispatcher); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 96 | method public void addLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 97 | method protected T? getItem(int position); |
| 98 | method public int getItemCount(); |
Dustin Lam | ab9a19a | 2020-04-17 20:19:05 -0700 | [diff] [blame] | 99 | method public final long getItemId(int position); |
Louis Pullen-Freilich | eb86a04 | 2020-04-30 12:35:30 +0100 | [diff] [blame^] | 100 | method public final suspend Object? presentData(androidx.paging.PagingData<T> pagingData, kotlin.coroutines.Continuation<? super kotlin.Unit> p); |
Chris Craik | b92dd93 | 2020-01-09 15:39:24 -0800 | [diff] [blame] | 101 | method public final void refresh(); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 102 | 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 Lam | e58e7a0 | 2020-02-25 09:54:10 -0800 | [diff] [blame] | 104 | method public final void submitData(androidx.lifecycle.Lifecycle lifecycle, androidx.paging.PagingData<T> pagingData); |
Chris Craik | f944984 | 2020-02-24 20:49:48 -0800 | [diff] [blame] | 105 | 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 Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 108 | } |
| 109 | |
Dustin Lam | 84cc490 | 2020-04-10 14:50:35 -0700 | [diff] [blame] | 110 | 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 Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame] | 116 | } |
| 117 | |