Jeff Gaston | 5d65a6a | 2019-01-23 13:44:15 -0500 | [diff] [blame] | 1 | // Signature format: 3.0 |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 2 | package androidx.paging { |
| 3 | |
Yigit Boyar | c77bc77 | 2019-12-20 13:14:12 -0800 | [diff] [blame] | 4 | public final class CachedPagedDataKt { |
| 5 | method public static <T> kotlinx.coroutines.flow.Flow<androidx.paging.PagedData<T>> cachedIn(kotlinx.coroutines.flow.Flow<androidx.paging.PagedData<T>>, kotlinx.coroutines.CoroutineScope scope); |
| 6 | } |
| 7 | |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 8 | public abstract class DataSource<Key, Value> { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 9 | method @AnyThread public void addInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); |
Dustin Lam | 7b116f5 | 2019-06-12 13:51:31 -0700 | [diff] [blame] | 10 | method @AnyThread public final void addInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 11 | method @AnyThread public void invalidate(); |
| 12 | method @WorkerThread public boolean isInvalid(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 13 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 14 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 15 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 16 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 17 | method @AnyThread public void removeInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); |
Dustin Lam | 7b116f5 | 2019-06-12 13:51:31 -0700 | [diff] [blame] | 18 | method @AnyThread public final void removeInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 19 | property @WorkerThread public boolean isInvalid; |
| 20 | } |
| 21 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 22 | public abstract static class DataSource.Factory<Key, Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 23 | ctor public DataSource.Factory(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 24 | method public abstract androidx.paging.DataSource<Key,Value> create(); |
| 25 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 26 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 27 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 28 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 29 | } |
| 30 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 31 | public static interface DataSource.InvalidatedCallback { |
| 32 | method @AnyThread public void onInvalidated(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 33 | } |
| 34 | |
Dustin Lam | 7b116f5 | 2019-06-12 13:51:31 -0700 | [diff] [blame] | 35 | public final class DataSourceKt { |
Dustin Lam | 7b116f5 | 2019-06-12 13:51:31 -0700 | [diff] [blame] | 36 | } |
| 37 | |
Dustin Lam | 8ed132d | 2019-12-30 18:00:15 -0800 | [diff] [blame^] | 38 | public final class HeaderFooterKt { |
| 39 | } |
| 40 | |
Dustin Lam | 9a972d7 | 2019-06-20 08:40:12 -0700 | [diff] [blame] | 41 | public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
Chris Craik | 557c882 | 2018-10-25 15:04:03 -0700 | [diff] [blame] | 42 | ctor public ItemKeyedDataSource(); |
Dustin Lam | 9a972d7 | 2019-06-20 08:40:12 -0700 | [diff] [blame] | 43 | method public abstract Key getKey(Value item); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 44 | method public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 45 | method public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 46 | method public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback); |
| 47 | method public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 48 | method public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 49 | method public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 50 | method public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 51 | } |
| 52 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 53 | public abstract static class ItemKeyedDataSource.LoadCallback<Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 54 | ctor public ItemKeyedDataSource.LoadCallback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 55 | method public abstract void onResult(java.util.List<? extends Value> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 56 | } |
| 57 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 58 | public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 59 | ctor public ItemKeyedDataSource.LoadInitialCallback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 60 | method public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 61 | } |
| 62 | |
Dustin Lam | 9a972d7 | 2019-06-20 08:40:12 -0700 | [diff] [blame] | 63 | public static class ItemKeyedDataSource.LoadInitialParams<Key> { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 64 | ctor public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 65 | field public final boolean placeholdersEnabled; |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 66 | field public final Key? requestedInitialKey; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 67 | field public final int requestedLoadSize; |
| 68 | } |
| 69 | |
Dustin Lam | 9a972d7 | 2019-06-20 08:40:12 -0700 | [diff] [blame] | 70 | public static class ItemKeyedDataSource.LoadParams<Key> { |
| 71 | ctor public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 72 | field public final Key key; |
| 73 | field public final int requestedLoadSize; |
| 74 | } |
| 75 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 76 | public abstract sealed class LoadState { |
| 77 | } |
| 78 | |
| 79 | public static final class LoadState.Done extends androidx.paging.LoadState { |
| 80 | field public static final androidx.paging.LoadState.Done! INSTANCE; |
| 81 | } |
| 82 | |
| 83 | public static final class LoadState.Error extends androidx.paging.LoadState { |
Chris Craik | bda30df | 2019-09-06 15:14:28 -0700 | [diff] [blame] | 84 | ctor public LoadState.Error(Throwable error); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 85 | method public Throwable component1(); |
Chris Craik | bda30df | 2019-09-06 15:14:28 -0700 | [diff] [blame] | 86 | method public androidx.paging.LoadState.Error copy(Throwable error); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 87 | method public Throwable getError(); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | public static final class LoadState.Idle extends androidx.paging.LoadState { |
| 91 | field public static final androidx.paging.LoadState.Idle! INSTANCE; |
| 92 | } |
| 93 | |
| 94 | public static final class LoadState.Loading extends androidx.paging.LoadState { |
| 95 | field public static final androidx.paging.LoadState.Loading! INSTANCE; |
| 96 | } |
| 97 | |
| 98 | public enum LoadType { |
| 99 | enum_constant public static final androidx.paging.LoadType END; |
| 100 | enum_constant public static final androidx.paging.LoadType REFRESH; |
| 101 | enum_constant public static final androidx.paging.LoadType START; |
| 102 | } |
| 103 | |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 104 | public final class PageEventKt { |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 105 | } |
| 106 | |
Dustin Lam | 4dcef65 | 2019-06-20 08:33:55 -0700 | [diff] [blame] | 107 | public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
Chris Craik | 557c882 | 2018-10-25 15:04:03 -0700 | [diff] [blame] | 108 | ctor public PageKeyedDataSource(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 109 | method public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 110 | method public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 111 | method public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback); |
| 112 | method public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 113 | method public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 114 | method public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 115 | method public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 116 | } |
| 117 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 118 | public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 119 | ctor public PageKeyedDataSource.LoadCallback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 120 | method public abstract void onResult(java.util.List<? extends Value> data, Key? adjacentPageKey); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 121 | } |
| 122 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 123 | public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 124 | ctor public PageKeyedDataSource.LoadInitialCallback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 125 | method public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey); |
| 126 | method public abstract void onResult(java.util.List<? extends Value> data, Key? previousPageKey, Key? nextPageKey); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 127 | } |
| 128 | |
Dustin Lam | 4dcef65 | 2019-06-20 08:33:55 -0700 | [diff] [blame] | 129 | public static class PageKeyedDataSource.LoadInitialParams<Key> { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 130 | ctor public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled); |
Dustin Lam | 4dcef65 | 2019-06-20 08:33:55 -0700 | [diff] [blame] | 131 | field public final boolean placeholdersEnabled; |
| 132 | field public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 133 | } |
| 134 | |
Dustin Lam | 4dcef65 | 2019-06-20 08:33:55 -0700 | [diff] [blame] | 135 | public static class PageKeyedDataSource.LoadParams<Key> { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 136 | ctor public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
Dustin Lam | 4dcef65 | 2019-06-20 08:33:55 -0700 | [diff] [blame] | 137 | field public final Key key; |
| 138 | field public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 139 | } |
| 140 | |
Chris Craik | ca661cb | 2019-12-12 10:30:32 -0800 | [diff] [blame] | 141 | public final class PagedData<T> { |
Dustin Lam | 8ed132d | 2019-12-30 18:00:15 -0800 | [diff] [blame^] | 142 | method public androidx.paging.PagedData<T> addFooter(T item); |
| 143 | method public androidx.paging.PagedData<T> addHeader(T item); |
Chris Craik | ca661cb | 2019-12-12 10:30:32 -0800 | [diff] [blame] | 144 | method public androidx.paging.PagedData<T> filter(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); |
| 145 | method public <R> androidx.paging.PagedData<R> flatMap(kotlin.jvm.functions.Function1<? super T,? extends java.lang.Iterable<? extends R>> transform); |
| 146 | method public <R extends T> androidx.paging.PagedData<T> insertSeparators(kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
| 147 | method public <R> androidx.paging.PagedData<R> map(kotlin.jvm.functions.Function1<? super T,? extends R> transform); |
| 148 | } |
| 149 | |
Chris Craik | 1c09b585 | 2020-01-07 12:58:34 -0800 | [diff] [blame] | 150 | public final class PagedDataFlow { |
| 151 | method public static <Key, Value> kotlinx.coroutines.flow.Flow<androidx.paging.PagedData<Value>> create(androidx.paging.PagingConfig config, Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>> pagedSourceFactory); |
| 152 | method public static <Key, Value> kotlinx.coroutines.flow.Flow<androidx.paging.PagedData<Value>> create(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagedSource<Key,Value>> pagedSourceFactory); |
Chris Craik | c3d0082 | 2019-12-16 10:54:06 -0800 | [diff] [blame] | 153 | } |
| 154 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 155 | public abstract class PagedList<T> extends java.util.AbstractList<T> { |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 156 | method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, androidx.paging.PagedList.Callback callback); |
| 157 | method public final void addWeakCallback(androidx.paging.PagedList.Callback callback); |
| 158 | method public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
Chris Craik | 557c882 | 2018-10-25 15:04:03 -0700 | [diff] [blame] | 159 | method public abstract void detach(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 160 | method public T? get(int index); |
Chris Craik | 4f0002c | 2019-08-30 09:19:39 -0700 | [diff] [blame] | 161 | method public final androidx.paging.PagedList.Config getConfig(); |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 162 | method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource(); |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 163 | method public abstract Object? getLastKey(); |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 164 | method public final int getLoadedCount(); |
| 165 | method public final int getPositionOffset(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 166 | method public int getSize(); |
Chris Craik | 557c882 | 2018-10-25 15:04:03 -0700 | [diff] [blame] | 167 | method public abstract boolean isDetached(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 168 | method public boolean isImmutable(); |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 169 | method public final void loadAround(int index); |
| 170 | method public final void removeWeakCallback(androidx.paging.PagedList.Callback callback); |
| 171 | method public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
Chris Craik | cf72bdc | 2018-10-18 13:32:02 -0700 | [diff] [blame] | 172 | method public void retry(); |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 173 | method public final java.util.List<T> snapshot(); |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 174 | property @Deprecated public final androidx.paging.DataSource<?,T> dataSource; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 175 | property public abstract boolean isDetached; |
| 176 | property public boolean isImmutable; |
| 177 | property public abstract Object? lastKey; |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 178 | property public final int loadedCount; |
| 179 | property public final int positionOffset; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 180 | property public int size; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 181 | } |
| 182 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 183 | @MainThread public abstract static class PagedList.BoundaryCallback<T> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 184 | ctor public PagedList.BoundaryCallback(); |
Chris Craik | 76c7229 | 2019-09-19 14:06:32 -0700 | [diff] [blame] | 185 | method public void onItemAtEndLoaded(T itemAtEnd); |
| 186 | method public void onItemAtFrontLoaded(T itemAtFront); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 187 | method public void onZeroItemsLoaded(); |
| 188 | } |
| 189 | |
| 190 | public static final class PagedList.Builder<Key, Value> { |
Dustin Lam | aa0515c | 2019-07-02 19:35:29 -0700 | [diff] [blame] | 191 | ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config); |
| 192 | ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, int pageSize); |
Chris Craik | 9e5b63a | 2019-09-16 14:04:49 -0700 | [diff] [blame] | 193 | ctor public PagedList.Builder(androidx.paging.PagedSource<Key,Value> pagedSource, androidx.paging.PagedSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config); |
| 194 | ctor public PagedList.Builder(androidx.paging.PagedSource<Key,Value> pagedSource, androidx.paging.PagedSource.LoadResult.Page<Key,Value> initialPage, int pageSize); |
| 195 | method public androidx.paging.PagedList<Value> build(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 196 | method public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); |
Dustin Lam | dba215c | 2019-06-21 17:35:26 -0700 | [diff] [blame] | 197 | method public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); |
Dustin Lam | dc14fd0 | 2019-08-01 19:34:18 -0700 | [diff] [blame] | 198 | method public androidx.paging.PagedList.Builder<Key,Value> setFetchDispatcher(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher); |
| 199 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 200 | method public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey); |
Dustin Lam | dc14fd0 | 2019-08-01 19:34:18 -0700 | [diff] [blame] | 201 | method public androidx.paging.PagedList.Builder<Key,Value> setNotifyDispatcher(kotlinx.coroutines.CoroutineDispatcher notifyDispatcher); |
| 202 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyExecutor(java.util.concurrent.Executor notifyExecutor); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 203 | } |
| 204 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 205 | public abstract static class PagedList.Callback { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 206 | ctor public PagedList.Callback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 207 | method public abstract void onChanged(int position, int count); |
| 208 | method public abstract void onInserted(int position, int count); |
| 209 | method public abstract void onRemoved(int position, int count); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 210 | } |
| 211 | |
Dustin Lam | b2de3cc | 2019-06-12 09:47:19 -0700 | [diff] [blame] | 212 | public static final class PagedList.Config { |
Chris Craik | e8ca38c | 2018-05-22 18:08:16 -0700 | [diff] [blame] | 213 | field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 214 | field public final boolean enablePlaceholders; |
| 215 | field public final int initialLoadSizeHint; |
Chris Craik | e8ca38c | 2018-05-22 18:08:16 -0700 | [diff] [blame] | 216 | field public final int maxSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 217 | field public final int pageSize; |
| 218 | field public final int prefetchDistance; |
| 219 | } |
| 220 | |
| 221 | public static final class PagedList.Config.Builder { |
| 222 | ctor public PagedList.Config.Builder(); |
| 223 | method public androidx.paging.PagedList.Config build(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 224 | method public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders); |
| 225 | method public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint); |
| 226 | method public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize); |
| 227 | method public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize); |
| 228 | method public androidx.paging.PagedList.Config.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 229 | } |
| 230 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 231 | public final class PagedListConfigKt { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 232 | method public static androidx.paging.PagedList.Config Config(int pageSize, int prefetchDistance = pageSize, boolean enablePlaceholders = true, int initialLoadSizeHint = pageSize * androidx.paging.PagedList.Config.Builder.DEFAULT_INITIAL_PAGE_MULTIPLIER, int maxSize = 2147483647); |
| 233 | } |
| 234 | |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 235 | public final class PagedListKt { |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 236 | method @Deprecated public static <Key, Value> androidx.paging.PagedList<Value> PagedList(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config, java.util.concurrent.Executor notifyExecutor, java.util.concurrent.Executor fetchExecutor, androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback = null, Key? initialKey = null); |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 237 | } |
| 238 | |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 239 | public abstract class PagedSource<Key, Value> { |
| 240 | ctor public PagedSource(); |
Dustin Lam | 77017e2 | 2019-07-19 16:11:03 -0700 | [diff] [blame] | 241 | method public final boolean getInvalid(); |
Chris Craik | 32fa353 | 2019-09-27 09:08:51 -0700 | [diff] [blame] | 242 | method public Key? getRefreshKeyFromPage(int indexInPage, androidx.paging.PagedSource.LoadResult.Page<Key,Value> page); |
Dustin Lam | 77017e2 | 2019-07-19 16:11:03 -0700 | [diff] [blame] | 243 | method public void invalidate(); |
Dustin Lam | dba215c | 2019-06-21 17:35:26 -0700 | [diff] [blame] | 244 | method public abstract suspend Object load(androidx.paging.PagedSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagedSource.LoadResult<Key,Value>> p); |
Dustin Lam | 6d03239 | 2019-07-22 20:35:28 -0700 | [diff] [blame] | 245 | method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 246 | method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
Dustin Lam | 77017e2 | 2019-07-19 16:11:03 -0700 | [diff] [blame] | 247 | property public final boolean invalid; |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 248 | } |
| 249 | |
| 250 | public static final class PagedSource.LoadParams<Key> { |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 251 | ctor public PagedSource.LoadParams(androidx.paging.LoadType loadType, Key? key, int loadSize, boolean placeholdersEnabled, int pageSize); |
| 252 | method public androidx.paging.LoadType component1(); |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 253 | method public Key? component2(); |
| 254 | method public int component3(); |
| 255 | method public boolean component4(); |
| 256 | method public int component5(); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 257 | method public androidx.paging.PagedSource.LoadParams<Key> copy(androidx.paging.LoadType loadType, Key? key, int loadSize, boolean placeholdersEnabled, int pageSize); |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 258 | method public Key? getKey(); |
| 259 | method public int getLoadSize(); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 260 | method public androidx.paging.LoadType getLoadType(); |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 261 | method public int getPageSize(); |
| 262 | method public boolean getPlaceholdersEnabled(); |
| 263 | } |
| 264 | |
Chris Craik | 9e5b63a | 2019-09-16 14:04:49 -0700 | [diff] [blame] | 265 | public abstract static sealed class PagedSource.LoadResult<Key, Value> { |
| 266 | } |
| 267 | |
| 268 | public static final class PagedSource.LoadResult.Error<Key, Value> extends androidx.paging.PagedSource.LoadResult<Key,Value> { |
| 269 | ctor public PagedSource.LoadResult.Error(Throwable throwable); |
| 270 | method public Throwable component1(); |
| 271 | method public androidx.paging.PagedSource.LoadResult.Error<Key,Value> copy(Throwable throwable); |
| 272 | method public Throwable getThrowable(); |
| 273 | } |
| 274 | |
| 275 | public static final class PagedSource.LoadResult.Page<Key, Value> extends androidx.paging.PagedSource.LoadResult<Key,Value> { |
Chris Craik | 32fa353 | 2019-09-27 09:08:51 -0700 | [diff] [blame] | 276 | ctor public PagedSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, @IntRange(from=null) int itemsBefore, @IntRange(from=null) int itemsAfter); |
Dustin Lam | 9d4b837 | 2019-08-01 17:11:49 -0700 | [diff] [blame] | 277 | method public java.util.List<Value> component1(); |
Chris Craik | 32fa353 | 2019-09-27 09:08:51 -0700 | [diff] [blame] | 278 | method public Key? component2(); |
| 279 | method public Key? component3(); |
| 280 | method public int component4(); |
| 281 | method public int component5(); |
| 282 | method public androidx.paging.PagedSource.LoadResult.Page<Key,Value> copy(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, int itemsBefore, int itemsAfter); |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 283 | method public java.util.List<Value> getData(); |
| 284 | method public int getItemsAfter(); |
| 285 | method public int getItemsBefore(); |
| 286 | method public Key? getNextKey(); |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 287 | method public Key? getPrevKey(); |
Chris Craik | cda564f | 2019-09-24 13:33:12 -0700 | [diff] [blame] | 288 | field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000 |
Chris Craik | 9e5b63a | 2019-09-16 14:04:49 -0700 | [diff] [blame] | 289 | field public static final androidx.paging.PagedSource.LoadResult.Page.Companion! Companion; |
Dustin Lam | 96d8fc7 | 2019-07-18 19:46:44 -0700 | [diff] [blame] | 290 | } |
| 291 | |
Chris Craik | 9e5b63a | 2019-09-16 14:04:49 -0700 | [diff] [blame] | 292 | public static final class PagedSource.LoadResult.Page.Companion { |
Dustin Lam | ff2f979 | 2019-06-14 19:38:01 -0700 | [diff] [blame] | 293 | } |
| 294 | |
Dustin Lam | 6d03239 | 2019-07-22 20:35:28 -0700 | [diff] [blame] | 295 | public final class PagedSourceKt { |
Dustin Lam | 6d03239 | 2019-07-22 20:35:28 -0700 | [diff] [blame] | 296 | } |
| 297 | |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 298 | public final class PagingConfig { |
| 299 | ctor public PagingConfig(int pageSize, int prefetchDistance, boolean enablePlaceholders, int initialLoadSize, int maxSize); |
| 300 | field public static final androidx.paging.PagingConfig.Companion! Companion; |
| 301 | field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 302 | field public final boolean enablePlaceholders; |
| 303 | field public final int initialLoadSize; |
| 304 | field public final int maxSize; |
| 305 | field public final int pageSize; |
| 306 | field public final int prefetchDistance; |
| 307 | } |
| 308 | |
| 309 | public static final class PagingConfig.Builder { |
| 310 | ctor public PagingConfig.Builder(int pageSize); |
| 311 | method public androidx.paging.PagingConfig build(); |
| 312 | method public androidx.paging.PagingConfig.Builder setEnablePlaceholders(boolean enablePlaceholders); |
| 313 | method public androidx.paging.PagingConfig.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint); |
| 314 | method public androidx.paging.PagingConfig.Builder setMaxSize(@IntRange(from=2) int maxSize); |
| 315 | method public androidx.paging.PagingConfig.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance); |
| 316 | } |
| 317 | |
| 318 | public static final class PagingConfig.Companion { |
| 319 | } |
| 320 | |
Dustin Lam | a7fecfa | 2019-06-20 18:39:13 -0700 | [diff] [blame] | 321 | public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> { |
Chris Craik | 557c882 | 2018-10-25 15:04:03 -0700 | [diff] [blame] | 322 | ctor public PositionalDataSource(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 323 | method public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount); |
| 324 | method public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 325 | method @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 326 | method @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback); |
| 327 | method public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 328 | method public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 329 | method public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 330 | method public final <V> androidx.paging.PositionalDataSource<V> mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends T>,? extends java.util.List<? extends V>> function); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 331 | } |
| 332 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 333 | public abstract static class PositionalDataSource.LoadInitialCallback<T> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 334 | ctor public PositionalDataSource.LoadInitialCallback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 335 | method public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount); |
| 336 | method public abstract void onResult(java.util.List<? extends T> data, int position); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 337 | } |
| 338 | |
Dustin Lam | a7fecfa | 2019-06-20 18:39:13 -0700 | [diff] [blame] | 339 | public static class PositionalDataSource.LoadInitialParams { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 340 | ctor public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled); |
Dustin Lam | a7fecfa | 2019-06-20 18:39:13 -0700 | [diff] [blame] | 341 | field public final int pageSize; |
| 342 | field public final boolean placeholdersEnabled; |
| 343 | field public final int requestedLoadSize; |
| 344 | field public final int requestedStartPosition; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 345 | } |
| 346 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 347 | public abstract static class PositionalDataSource.LoadRangeCallback<T> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 348 | ctor public PositionalDataSource.LoadRangeCallback(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 349 | method public abstract void onResult(java.util.List<? extends T> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 350 | } |
| 351 | |
Dustin Lam | a7fecfa | 2019-06-20 18:39:13 -0700 | [diff] [blame] | 352 | public static class PositionalDataSource.LoadRangeParams { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 353 | ctor public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize); |
Dustin Lam | a7fecfa | 2019-06-20 18:39:13 -0700 | [diff] [blame] | 354 | field public final int loadSize; |
| 355 | field public final int startPosition; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 356 | } |
| 357 | |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 358 | public final class SeparatorsKt { |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 359 | } |
| 360 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 361 | } |
| 362 | |
Yigit Boyar | c77bc77 | 2019-12-20 13:14:12 -0800 | [diff] [blame] | 363 | package androidx.paging.multicast { |
| 364 | |
| 365 | public final class ChannelManagerKt { |
| 366 | } |
| 367 | |
| 368 | } |
| 369 | |