blob: 6822061309996696949b10c0c92cc509aaa8b232 [file] [log] [blame]
Jeff Gaston79285e92019-02-13 15:26:16 -05001// Signature format: 3.0
Jeff Gastone6a3a042019-07-01 18:23:37 -04002package 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 Lam6d032392019-07-22 20:35:28 -070031 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 Gastone6a3a042019-07-01 18:23:37 -040035 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 Lam6d032392019-07-22 20:35:28 -070044 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 Lamdc14fd02019-08-01 19:34:18 -070046 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 Gastone6a3a042019-07-01 18:23:37 -040048 }
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