Jeff Gaston | 79285e9 | 2019-02-13 15:26:16 -0500 | [diff] [blame] | 1 | // Signature format: 3.0 |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 2 | package androidx.paging { |
| 3 | |
| 4 | public class AsyncPagedListDiffer<T> { |
| 5 | ctor public AsyncPagedListDiffer(androidx.recyclerview.widget.RecyclerView.Adapter<?> adapter, androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback); |
| 6 | ctor public AsyncPagedListDiffer(androidx.recyclerview.widget.ListUpdateCallback listUpdateCallback, androidx.recyclerview.widget.AsyncDifferConfig<T> config); |
| 7 | method public void addLoadStateListener(kotlin.jvm.functions.Function3<? super androidx.paging.PagedList.LoadType,? super androidx.paging.PagedList.LoadState,? super java.lang.Throwable,kotlin.Unit> listener); |
| 8 | method public void addPagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T> listener); |
| 9 | method public final void addPagedListListener(kotlin.jvm.functions.Function2<? super androidx.paging.PagedList<T>,? super androidx.paging.PagedList<T>,kotlin.Unit> callback); |
| 10 | method public androidx.paging.PagedList<T>? getCurrentList(); |
| 11 | method public T? getItem(int index); |
| 12 | method public int getItemCount(); |
| 13 | method public void removeLoadStateListener(kotlin.jvm.functions.Function3<? super androidx.paging.PagedList.LoadType,? super androidx.paging.PagedList.LoadState,? super java.lang.Throwable,kotlin.Unit> listener); |
| 14 | method public void removePagedListListener(androidx.paging.AsyncPagedListDiffer.PagedListListener<T> listener); |
| 15 | method public final void removePagedListListener(kotlin.jvm.functions.Function2<? super androidx.paging.PagedList<T>,? super androidx.paging.PagedList<T>,kotlin.Unit> callback); |
| 16 | method public void submitList(androidx.paging.PagedList<T>? pagedList); |
| 17 | method public void submitList(androidx.paging.PagedList<T>? pagedList, Runnable? commitCallback); |
| 18 | property public androidx.paging.PagedList<T>? currentList; |
| 19 | property public int itemCount; |
| 20 | } |
| 21 | |
| 22 | public static interface AsyncPagedListDiffer.PagedListListener<T> { |
| 23 | method public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList); |
| 24 | } |
| 25 | |
| 26 | public final class AsyncPagedListDifferKt { |
| 27 | ctor public AsyncPagedListDifferKt(); |
| 28 | } |
| 29 | |
| 30 | public final class LivePagedListBuilder<Key, Value> { |
Dustin Lam | 6d03239 | 2019-07-22 20:35:28 -0700 | [diff] [blame] | 31 | ctor @Deprecated public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value> dataSourceFactory, androidx.paging.PagedList.Config config); |
| 32 | ctor @Deprecated public LivePagedListBuilder(androidx.paging.DataSource.Factory<Key,Value> dataSourceFactory, int pageSize); |
| 33 | ctor public LivePagedListBuilder(kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>> pagedSourceFactory, androidx.paging.PagedList.Config config); |
| 34 | ctor public LivePagedListBuilder(kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>> pagedSourceFactory, int pageSize); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 35 | method public androidx.lifecycle.LiveData<androidx.paging.PagedList<Value>> build(); |
| 36 | method public androidx.paging.LivePagedListBuilder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); |
| 37 | method public androidx.paging.LivePagedListBuilder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); |
| 38 | method public androidx.paging.LivePagedListBuilder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor); |
| 39 | method public androidx.paging.LivePagedListBuilder<Key,Value> setInitialLoadKey(Key? key); |
| 40 | } |
| 41 | |
| 42 | public final class LivePagedListKt { |
| 43 | ctor public LivePagedListKt(); |
Dustin Lam | 6d03239 | 2019-07-22 20:35:28 -0700 | [diff] [blame] | 44 | 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()); |
| 45 | 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 | dc14fd0 | 2019-08-01 19:34:18 -0700 | [diff] [blame] | 46 | 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); |
| 47 | 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); |
Jeff Gaston | e6a3a04 | 2019-07-01 18:23:37 -0400 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | public abstract class PagedListAdapter<T, VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> extends androidx.recyclerview.widget.RecyclerView.Adapter<VH> { |
| 51 | ctor protected PagedListAdapter(androidx.recyclerview.widget.DiffUtil.ItemCallback<T> diffCallback); |
| 52 | ctor protected PagedListAdapter(androidx.recyclerview.widget.AsyncDifferConfig<T> config); |
| 53 | method public void addLoadStateListener(kotlin.jvm.functions.Function3<? super androidx.paging.PagedList.LoadType,? super androidx.paging.PagedList.LoadState,? super java.lang.Throwable,kotlin.Unit> callback); |
| 54 | method public androidx.paging.PagedList<T>? getCurrentList(); |
| 55 | method protected T? getItem(int position); |
| 56 | method public int getItemCount(); |
| 57 | method @Deprecated public void onCurrentListChanged(androidx.paging.PagedList<T>? currentList); |
| 58 | method public void onCurrentListChanged(androidx.paging.PagedList<T>? previousList, androidx.paging.PagedList<T>? currentList); |
| 59 | method public void onLoadStateChanged(androidx.paging.PagedList.LoadType type, androidx.paging.PagedList.LoadState state, Throwable? error); |
| 60 | method public void removeLoadStateListener(kotlin.jvm.functions.Function3<? super androidx.paging.PagedList.LoadType,? super androidx.paging.PagedList.LoadState,? super java.lang.Throwable,kotlin.Unit> callback); |
| 61 | method public void submitList(androidx.paging.PagedList<T>? pagedList); |
| 62 | method public void submitList(androidx.paging.PagedList<T>? pagedList, Runnable? commitCallback); |
| 63 | property public androidx.paging.PagedList<T>? currentList; |
| 64 | } |
| 65 | |
| 66 | public final class PagedStorageDiffHelperKt { |
| 67 | ctor public PagedStorageDiffHelperKt(); |
| 68 | } |
| 69 | |
| 70 | } |
| 71 | |