Aurimas Liutikas | 3aa5a20 | 2020-10-05 09:42:14 -0700 | [diff] [blame] | 1 | // Signature format: 4.0 |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 2 | package androidx.paging { |
| 3 | |
Dustin Lam | c019a72 | 2020-01-10 13:37:18 -0800 | [diff] [blame] | 4 | public final class CachedPagingDataKt { |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 5 | method @CheckResult public static <T> kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<T>> cachedIn(kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<T>>, kotlinx.coroutines.CoroutineScope scope); |
Yigit Boyar | c77bc77 | 2019-12-20 13:14:12 -0800 | [diff] [blame] | 6 | } |
| 7 | |
Dustin Lam | bfb4038 | 2020-01-14 15:17:18 -0800 | [diff] [blame] | 8 | public final class CancelableChannelFlowKt { |
| 9 | } |
| 10 | |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 11 | public final class CombinedLoadStates { |
Dustin Lam | b03819f | 2020-11-25 17:18:32 -0800 | [diff] [blame^] | 12 | ctor public CombinedLoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append, androidx.paging.LoadStates source, androidx.paging.LoadStates? mediator); |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 13 | method public androidx.paging.LoadState getAppend(); |
| 14 | method public androidx.paging.LoadStates? getMediator(); |
| 15 | method public androidx.paging.LoadState getPrepend(); |
| 16 | method public androidx.paging.LoadState getRefresh(); |
| 17 | method public androidx.paging.LoadStates getSource(); |
| 18 | property public final androidx.paging.LoadState append; |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 19 | property public final androidx.paging.LoadStates? mediator; |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 20 | property public final androidx.paging.LoadState prepend; |
| 21 | property public final androidx.paging.LoadState refresh; |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 22 | property public final androidx.paging.LoadStates source; |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 23 | } |
| 24 | |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 25 | public abstract class DataSource<Key, Value> { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 26 | method @AnyThread public void addInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 27 | method @AnyThread public void invalidate(); |
| 28 | method @WorkerThread public boolean isInvalid(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 29 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 30 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
| 31 | method @AnyThread public void removeInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 32 | property @WorkerThread public boolean isInvalid; |
| 33 | } |
| 34 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 35 | public abstract static class DataSource.Factory<Key, Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 36 | ctor public DataSource.Factory(); |
Aurimas Liutikas | 3aa5a20 | 2020-10-05 09:42:14 -0700 | [diff] [blame] | 37 | method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(optional kotlinx.coroutines.CoroutineDispatcher fetchDispatcher); |
Dustin Lam | caee0ab | 2020-01-10 15:59:37 -0800 | [diff] [blame] | 38 | method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 39 | method public abstract androidx.paging.DataSource<Key,Value> create(); |
| 40 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 41 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 42 | } |
| 43 | |
Dustin Lam | 0680b89 | 2020-09-03 20:19:24 -0700 | [diff] [blame] | 44 | public static fun interface DataSource.InvalidatedCallback { |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 45 | method @AnyThread public void onInvalidated(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 46 | } |
| 47 | |
Aurimas Liutikas | 3ec1672 | 2020-05-27 13:08:04 -0700 | [diff] [blame] | 48 | @kotlin.RequiresOptIn public @interface ExperimentalPagingApi { |
Dustin Lam | 34f31e4 | 2020-04-28 23:45:46 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Clara F | 5ac03b4 | 2020-11-19 21:07:43 -0500 | [diff] [blame] | 51 | public abstract class InvalidatingPagingSourceFactory<Key, Value> implements kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> { |
| 52 | ctor public InvalidatingPagingSourceFactory(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 53 | method public final void invalidate(); |
| 54 | method public final androidx.paging.PagingSource<Key,Value> invoke(); |
| 55 | } |
| 56 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 57 | @Deprecated public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
| 58 | ctor @Deprecated public ItemKeyedDataSource(); |
| 59 | method @Deprecated public abstract Key getKey(Value item); |
| 60 | method @Deprecated public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
| 61 | method @Deprecated public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
| 62 | method @Deprecated public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback); |
| 63 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 64 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
| 65 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
| 66 | method @Deprecated 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] | 67 | } |
| 68 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 69 | @Deprecated public abstract static class ItemKeyedDataSource.LoadCallback<Value> { |
| 70 | ctor @Deprecated public ItemKeyedDataSource.LoadCallback(); |
| 71 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 72 | } |
| 73 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 74 | @Deprecated public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> { |
| 75 | ctor @Deprecated public ItemKeyedDataSource.LoadInitialCallback(); |
| 76 | method @Deprecated 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] | 77 | } |
| 78 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 79 | @Deprecated public static class ItemKeyedDataSource.LoadInitialParams<Key> { |
| 80 | ctor @Deprecated public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled); |
| 81 | field @Deprecated public final boolean placeholdersEnabled; |
| 82 | field @Deprecated public final Key? requestedInitialKey; |
| 83 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 84 | } |
| 85 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 86 | @Deprecated public static class ItemKeyedDataSource.LoadParams<Key> { |
| 87 | ctor @Deprecated public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
| 88 | field @Deprecated public final Key key; |
| 89 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 90 | } |
| 91 | |
Dustin Lam | cf7bd95 | 2020-07-23 19:26:03 -0700 | [diff] [blame] | 92 | public final class ItemSnapshotList<T> extends kotlin.collections.AbstractList<T> { |
Aurimas Liutikas | a3bfa99 | 2020-08-05 16:32:56 -0700 | [diff] [blame] | 93 | ctor public ItemSnapshotList(@IntRange(from=0) int placeholdersBefore, @IntRange(from=0) int placeholdersAfter, java.util.List<? extends T> items); |
Dustin Lam | cf7bd95 | 2020-07-23 19:26:03 -0700 | [diff] [blame] | 94 | method public T? get(int index); |
| 95 | method public java.util.List<T> getItems(); |
| 96 | method public int getPlaceholdersAfter(); |
| 97 | method public int getPlaceholdersBefore(); |
| 98 | method public int getSize(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 99 | property public final java.util.List<T> items; |
| 100 | property public final int placeholdersAfter; |
| 101 | property public final int placeholdersBefore; |
Dustin Lam | cf7bd95 | 2020-07-23 19:26:03 -0700 | [diff] [blame] | 102 | property public int size; |
| 103 | } |
| 104 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 105 | public abstract sealed class LoadState { |
Dustin Lam | cc1dd3d | 2020-04-13 23:56:45 -0700 | [diff] [blame] | 106 | method public final boolean getEndOfPaginationReached(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 107 | property public final boolean endOfPaginationReached; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 108 | } |
| 109 | |
| 110 | public static final class LoadState.Error extends androidx.paging.LoadState { |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 111 | ctor public LoadState.Error(Throwable error); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 112 | method public Throwable getError(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 113 | property public final Throwable error; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 114 | } |
| 115 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 116 | public static final class LoadState.Loading extends androidx.paging.LoadState { |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 117 | field public static final androidx.paging.LoadState.Loading INSTANCE; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 118 | } |
| 119 | |
Dustin Lam | cc1dd3d | 2020-04-13 23:56:45 -0700 | [diff] [blame] | 120 | public static final class LoadState.NotLoading extends androidx.paging.LoadState { |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 121 | ctor public LoadState.NotLoading(boolean endOfPaginationReached); |
| 122 | } |
| 123 | |
| 124 | public final class LoadStates { |
| 125 | ctor public LoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append); |
| 126 | method public androidx.paging.LoadState component1(); |
| 127 | method public androidx.paging.LoadState component2(); |
| 128 | method public androidx.paging.LoadState component3(); |
| 129 | method public androidx.paging.LoadStates copy(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append); |
| 130 | method public androidx.paging.LoadState getAppend(); |
| 131 | method public androidx.paging.LoadState getPrepend(); |
| 132 | method public androidx.paging.LoadState getRefresh(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 133 | property public final androidx.paging.LoadState append; |
| 134 | property public final androidx.paging.LoadState prepend; |
| 135 | property public final androidx.paging.LoadState refresh; |
Dustin Lam | cc1dd3d | 2020-04-13 23:56:45 -0700 | [diff] [blame] | 136 | } |
| 137 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 138 | public enum LoadType { |
Dustin Lam | 9c71367 | 2020-04-21 13:28:58 -0700 | [diff] [blame] | 139 | enum_constant public static final androidx.paging.LoadType APPEND; |
| 140 | enum_constant public static final androidx.paging.LoadType PREPEND; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 141 | enum_constant public static final androidx.paging.LoadType REFRESH; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 142 | } |
| 143 | |
Dustin Lam | 190a76e | 2020-09-28 13:54:08 -0700 | [diff] [blame] | 144 | public final class PageFetcherSnapshotKt { |
| 145 | } |
| 146 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 147 | @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
| 148 | ctor @Deprecated public PageKeyedDataSource(); |
| 149 | method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
| 150 | method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
| 151 | method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback); |
| 152 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 153 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
| 154 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
| 155 | method @Deprecated 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] | 156 | } |
| 157 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 158 | @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> { |
| 159 | ctor @Deprecated public PageKeyedDataSource.LoadCallback(); |
| 160 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? adjacentPageKey); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 161 | } |
| 162 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 163 | @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> { |
| 164 | ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback(); |
| 165 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey); |
| 166 | method @Deprecated 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] | 167 | } |
| 168 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 169 | @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> { |
| 170 | ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled); |
| 171 | field @Deprecated public final boolean placeholdersEnabled; |
| 172 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 173 | } |
| 174 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 175 | @Deprecated public static class PageKeyedDataSource.LoadParams<Key> { |
| 176 | ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
| 177 | field @Deprecated public final Key key; |
| 178 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 179 | } |
| 180 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 181 | @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> { |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 182 | method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, androidx.paging.PagedList.Callback callback); |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 183 | method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback); |
| 184 | method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| 185 | method @Deprecated public abstract void detach(); |
| 186 | method @Deprecated public T? get(int index); |
| 187 | method @Deprecated public final androidx.paging.PagedList.Config getConfig(); |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 188 | method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource(); |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 189 | method @Deprecated public abstract Object? getLastKey(); |
| 190 | method @Deprecated public final int getLoadedCount(); |
| 191 | method @Deprecated public final int getPositionOffset(); |
| 192 | method @Deprecated public int getSize(); |
| 193 | method @Deprecated public abstract boolean isDetached(); |
| 194 | method @Deprecated public boolean isImmutable(); |
| 195 | method @Deprecated public final void loadAround(int index); |
| 196 | method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback); |
| 197 | method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| 198 | method @Deprecated public void retry(); |
| 199 | method @Deprecated public final java.util.List<T> snapshot(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 200 | property public final androidx.paging.PagedList.Config config; |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 201 | property @Deprecated public final androidx.paging.DataSource<?,T> dataSource; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 202 | property public abstract boolean isDetached; |
| 203 | property public boolean isImmutable; |
| 204 | property public abstract Object? lastKey; |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 205 | property public final int loadedCount; |
| 206 | property public final int positionOffset; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 207 | property public int size; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 208 | } |
| 209 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 210 | @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> { |
| 211 | ctor @Deprecated public PagedList.BoundaryCallback(); |
| 212 | method @Deprecated public void onItemAtEndLoaded(T itemAtEnd); |
| 213 | method @Deprecated public void onItemAtFrontLoaded(T itemAtFront); |
| 214 | method @Deprecated public void onZeroItemsLoaded(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 215 | } |
| 216 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 217 | @Deprecated public static final class PagedList.Builder<Key, Value> { |
Dustin Lam | aa0515c | 2019-07-02 19:35:29 -0700 | [diff] [blame] | 218 | ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config); |
| 219 | ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, int pageSize); |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 220 | ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config); |
| 221 | ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize); |
| 222 | method @Deprecated public androidx.paging.PagedList<Value> build(); |
| 223 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); |
| 224 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); |
| 225 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchDispatcher(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher); |
Dustin Lam | dc14fd0 | 2019-08-01 19:34:18 -0700 | [diff] [blame] | 226 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor); |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 227 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey); |
| 228 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyDispatcher(kotlinx.coroutines.CoroutineDispatcher notifyDispatcher); |
Dustin Lam | dc14fd0 | 2019-08-01 19:34:18 -0700 | [diff] [blame] | 229 | 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] | 230 | } |
| 231 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 232 | @Deprecated public abstract static class PagedList.Callback { |
| 233 | ctor @Deprecated public PagedList.Callback(); |
| 234 | method @Deprecated public abstract void onChanged(int position, int count); |
| 235 | method @Deprecated public abstract void onInserted(int position, int count); |
| 236 | method @Deprecated public abstract void onRemoved(int position, int count); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 237 | } |
| 238 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 239 | @Deprecated public static final class PagedList.Config { |
| 240 | field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 241 | field @Deprecated public final boolean enablePlaceholders; |
| 242 | field @Deprecated public final int initialLoadSizeHint; |
| 243 | field @Deprecated public final int maxSize; |
| 244 | field @Deprecated public final int pageSize; |
| 245 | field @Deprecated public final int prefetchDistance; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 246 | } |
| 247 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 248 | @Deprecated public static final class PagedList.Config.Builder { |
| 249 | ctor @Deprecated public PagedList.Config.Builder(); |
| 250 | method @Deprecated public androidx.paging.PagedList.Config build(); |
| 251 | method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders); |
| 252 | method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint); |
| 253 | method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize); |
| 254 | method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize); |
| 255 | method @Deprecated public androidx.paging.PagedList.Config.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 256 | } |
| 257 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 258 | public final class PagedListConfigKt { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 259 | } |
| 260 | |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 261 | public final class PagedListKt { |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 262 | } |
| 263 | |
Dustin Lam | 84cc490 | 2020-04-10 14:50:35 -0700 | [diff] [blame] | 264 | public final class Pager<Key, Value> { |
| 265 | ctor public Pager(androidx.paging.PagingConfig config, Key? initialKey, androidx.paging.RemoteMediator<Key,Value>? remoteMediator, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 266 | ctor public Pager(androidx.paging.PagingConfig config, Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 267 | ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 268 | method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow(); |
| 269 | property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow; |
| 270 | } |
| 271 | |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 272 | public final class PagingConfig { |
Aurimas Liutikas | a3bfa99 | 2020-08-05 16:32:56 -0700 | [diff] [blame] | 273 | ctor public PagingConfig(int pageSize, @IntRange(from=0) int prefetchDistance, boolean enablePlaceholders, @IntRange(from=1) int initialLoadSize, @IntRange(from=2) int maxSize, int jumpThreshold); |
| 274 | ctor public PagingConfig(int pageSize, @IntRange(from=0) int prefetchDistance, boolean enablePlaceholders, @IntRange(from=1) int initialLoadSize, @IntRange(from=2) int maxSize); |
| 275 | ctor public PagingConfig(int pageSize, @IntRange(from=0) int prefetchDistance, boolean enablePlaceholders, @IntRange(from=1) int initialLoadSize); |
| 276 | ctor public PagingConfig(int pageSize, @IntRange(from=0) int prefetchDistance, boolean enablePlaceholders); |
| 277 | ctor public PagingConfig(int pageSize, @IntRange(from=0) int prefetchDistance); |
Dustin Lam | 7a1c56e | 2020-06-10 11:52:58 -0700 | [diff] [blame] | 278 | ctor public PagingConfig(int pageSize); |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 279 | field public static final androidx.paging.PagingConfig.Companion Companion; |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 280 | field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 281 | field public final boolean enablePlaceholders; |
| 282 | field public final int initialLoadSize; |
Dustin Lam | d9ccaf3 | 2020-03-30 19:06:01 -0700 | [diff] [blame] | 283 | field public final int jumpThreshold; |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 284 | field public final int maxSize; |
| 285 | field public final int pageSize; |
| 286 | field public final int prefetchDistance; |
| 287 | } |
| 288 | |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 289 | public static final class PagingConfig.Companion { |
| 290 | } |
| 291 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 292 | public final class PagingData<T> { |
Dustin Lam | b82a27f | 2020-02-04 17:09:34 -0800 | [diff] [blame] | 293 | method public static <T> androidx.paging.PagingData<T> empty(); |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 294 | method @CheckResult public androidx.paging.PagingData<T> filter(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); |
| 295 | method @CheckResult public <R> androidx.paging.PagingData<R> flatMap(kotlin.jvm.functions.Function1<? super T,? extends java.lang.Iterable<? extends R>> transform); |
Dustin Lam | e50166f | 2020-07-20 16:41:16 -0700 | [diff] [blame] | 296 | method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data); |
Chris Craik | 5b5ca9c | 2020-03-13 13:39:12 -0700 | [diff] [blame] | 297 | method @CheckResult public androidx.paging.PagingData<T> insertFooterItem(T item); |
| 298 | method @CheckResult public androidx.paging.PagingData<T> insertHeaderItem(T item); |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 299 | method @CheckResult public static <T extends R, R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T> pagingData, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
| 300 | method @CheckResult public <R> androidx.paging.PagingData<R> map(kotlin.jvm.functions.Function1<? super T,? extends R> transform); |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 301 | field public static final androidx.paging.PagingData.Companion Companion; |
Dustin Lam | b82a27f | 2020-02-04 17:09:34 -0800 | [diff] [blame] | 302 | } |
| 303 | |
| 304 | public static final class PagingData.Companion { |
| 305 | method public <T> androidx.paging.PagingData<T> empty(); |
Dustin Lam | e50166f | 2020-07-20 16:41:16 -0700 | [diff] [blame] | 306 | method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data); |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 307 | method @CheckResult public <T extends R, R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T> pagingData, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 308 | } |
| 309 | |
Chris Craik | 7621909 | 2020-03-09 11:30:01 -0700 | [diff] [blame] | 310 | public final class PagingDataKt { |
Chris Craik | 7621909 | 2020-03-09 11:30:01 -0700 | [diff] [blame] | 311 | } |
| 312 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 313 | public abstract class PagingSource<Key, Value> { |
| 314 | ctor public PagingSource(); |
| 315 | method public final boolean getInvalid(); |
Dustin Lam | 537c968 | 2020-03-31 21:43:45 -0700 | [diff] [blame] | 316 | method public boolean getJumpingSupported(); |
Dustin Lam | 3932121 | 2020-05-14 13:40:47 -0700 | [diff] [blame] | 317 | method public boolean getKeyReuseSupported(); |
Dustin Lam | 34f31e4 | 2020-04-28 23:45:46 -0700 | [diff] [blame] | 318 | method @androidx.paging.ExperimentalPagingApi public Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 319 | method public void invalidate(); |
Louis Pullen-Freilich | 10b53cd | 2020-04-30 12:35:30 +0100 | [diff] [blame] | 320 | method public abstract suspend Object? load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>> p); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 321 | method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 322 | method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 323 | property public final boolean invalid; |
Dustin Lam | 537c968 | 2020-03-31 21:43:45 -0700 | [diff] [blame] | 324 | property public boolean jumpingSupported; |
Dustin Lam | 3932121 | 2020-05-14 13:40:47 -0700 | [diff] [blame] | 325 | property public boolean keyReuseSupported; |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 326 | } |
| 327 | |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 328 | public abstract static sealed class PagingSource.LoadParams<Key> { |
| 329 | method public abstract Key? getKey(); |
| 330 | method public final int getLoadSize(); |
Dustin Lam | 343bb56 | 2020-05-04 13:53:12 -0700 | [diff] [blame] | 331 | method @Deprecated public final int getPageSize(); |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 332 | method public final boolean getPlaceholdersEnabled(); |
| 333 | property public abstract Key? key; |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 334 | property public final int loadSize; |
| 335 | property @Deprecated public final int pageSize; |
| 336 | property public final boolean placeholdersEnabled; |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 337 | } |
| 338 | |
| 339 | public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> { |
| 340 | ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled, int pageSize); |
Dustin Lam | 343bb56 | 2020-05-04 13:53:12 -0700 | [diff] [blame] | 341 | ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled); |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 342 | method public Key getKey(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 343 | property public Key key; |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 344 | } |
| 345 | |
| 346 | public static final class PagingSource.LoadParams.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> { |
| 347 | ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled, int pageSize); |
Dustin Lam | 343bb56 | 2020-05-04 13:53:12 -0700 | [diff] [blame] | 348 | ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled); |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 349 | method public Key getKey(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 350 | property public Key key; |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 351 | } |
| 352 | |
| 353 | public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> { |
| 354 | ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled, int pageSize); |
Dustin Lam | 343bb56 | 2020-05-04 13:53:12 -0700 | [diff] [blame] | 355 | ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 356 | method public Key? getKey(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 357 | property public Key? key; |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 358 | } |
| 359 | |
| 360 | public abstract static sealed class PagingSource.LoadResult<Key, Value> { |
| 361 | } |
| 362 | |
| 363 | public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> { |
| 364 | ctor public PagingSource.LoadResult.Error(Throwable throwable); |
| 365 | method public Throwable component1(); |
| 366 | method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable); |
| 367 | method public Throwable getThrowable(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 368 | property public final Throwable throwable; |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 369 | } |
| 370 | |
| 371 | public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> { |
Aurimas Liutikas | a3bfa99 | 2020-08-05 16:32:56 -0700 | [diff] [blame] | 372 | ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, @IntRange(from=COUNT_UNDEFINED.toLong()) int itemsBefore, @IntRange(from=COUNT_UNDEFINED.toLong()) int itemsAfter); |
Dustin Lam | ef4a873 | 2020-07-01 18:24:30 -0700 | [diff] [blame] | 373 | ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 374 | method public java.util.List<Value> component1(); |
| 375 | method public Key? component2(); |
| 376 | method public Key? component3(); |
| 377 | method public int component4(); |
| 378 | method public int component5(); |
| 379 | method public androidx.paging.PagingSource.LoadResult.Page<Key,Value> copy(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, int itemsBefore, int itemsAfter); |
| 380 | method public java.util.List<Value> getData(); |
| 381 | method public int getItemsAfter(); |
| 382 | method public int getItemsBefore(); |
| 383 | method public Key? getNextKey(); |
| 384 | method public Key? getPrevKey(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 385 | property public final java.util.List<Value> data; |
| 386 | property public final int itemsAfter; |
| 387 | property public final int itemsBefore; |
| 388 | property public final Key? nextKey; |
| 389 | property public final Key? prevKey; |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 390 | field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000 |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 391 | field public static final androidx.paging.PagingSource.LoadResult.Page.Companion Companion; |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 392 | } |
| 393 | |
| 394 | public static final class PagingSource.LoadResult.Page.Companion { |
| 395 | } |
| 396 | |
| 397 | public final class PagingSourceKt { |
| 398 | } |
| 399 | |
Dustin Lam | b034602 | 2020-01-17 15:08:13 -0800 | [diff] [blame] | 400 | public final class PagingState<Key, Value> { |
Aurimas Liutikas | a3bfa99 | 2020-08-05 16:32:56 -0700 | [diff] [blame] | 401 | ctor public PagingState(java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages, Integer? anchorPosition, androidx.paging.PagingConfig config, @IntRange(from=0) int leadingPlaceholderCount); |
Dustin Lam | 779cddb | 2020-03-26 12:28:43 -0700 | [diff] [blame] | 402 | method public Value? closestItemToPosition(int anchorPosition); |
| 403 | method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition); |
Dustin Lam | 5c9567f | 2020-06-17 13:44:16 -0700 | [diff] [blame] | 404 | method public Value? firstItemOrNull(); |
Dustin Lam | 779cddb | 2020-03-26 12:28:43 -0700 | [diff] [blame] | 405 | method public Integer? getAnchorPosition(); |
Dustin Lam | 1249ec0 | 2020-03-25 11:25:34 -0700 | [diff] [blame] | 406 | method public androidx.paging.PagingConfig getConfig(); |
Dustin Lam | b034602 | 2020-01-17 15:08:13 -0800 | [diff] [blame] | 407 | method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages(); |
Dustin Lam | 5c9567f | 2020-06-17 13:44:16 -0700 | [diff] [blame] | 408 | method public boolean isEmpty(); |
| 409 | method public Value? lastItemOrNull(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 410 | property public final Integer? anchorPosition; |
| 411 | property public final androidx.paging.PagingConfig config; |
| 412 | property public final java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages; |
Dustin Lam | b034602 | 2020-01-17 15:08:13 -0800 | [diff] [blame] | 413 | } |
| 414 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 415 | @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> { |
| 416 | ctor @Deprecated public PositionalDataSource(); |
| 417 | method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount); |
| 418 | method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount); |
| 419 | method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback); |
| 420 | method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback); |
| 421 | method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function); |
| 422 | method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function); |
| 423 | method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function); |
| 424 | method @Deprecated 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] | 425 | } |
| 426 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 427 | @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> { |
| 428 | ctor @Deprecated public PositionalDataSource.LoadInitialCallback(); |
| 429 | method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount); |
| 430 | method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 431 | } |
| 432 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 433 | @Deprecated public static class PositionalDataSource.LoadInitialParams { |
| 434 | ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled); |
| 435 | field @Deprecated public final int pageSize; |
| 436 | field @Deprecated public final boolean placeholdersEnabled; |
| 437 | field @Deprecated public final int requestedLoadSize; |
| 438 | field @Deprecated public final int requestedStartPosition; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 439 | } |
| 440 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 441 | @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> { |
| 442 | ctor @Deprecated public PositionalDataSource.LoadRangeCallback(); |
| 443 | method @Deprecated public abstract void onResult(java.util.List<? extends T> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 444 | } |
| 445 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 446 | @Deprecated public static class PositionalDataSource.LoadRangeParams { |
| 447 | ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize); |
| 448 | field @Deprecated public final int loadSize; |
| 449 | field @Deprecated public final int startPosition; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 450 | } |
| 451 | |
Dustin Lam | 937dfa9 | 2020-04-29 22:10:15 -0700 | [diff] [blame] | 452 | @androidx.paging.ExperimentalPagingApi public abstract class RemoteMediator<Key, Value> { |
Dustin Lam | 4f1cfee | 2020-03-09 09:49:22 -0700 | [diff] [blame] | 453 | ctor public RemoteMediator(); |
Louis Pullen-Freilich | 10b53cd | 2020-04-30 12:35:30 +0100 | [diff] [blame] | 454 | method public suspend Object? initialize(kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.InitializeAction> $completion); |
| 455 | method public abstract suspend Object? load(androidx.paging.LoadType loadType, androidx.paging.PagingState<Key,Value> state, kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.MediatorResult> p); |
Dustin Lam | 4f1cfee | 2020-03-09 09:49:22 -0700 | [diff] [blame] | 456 | } |
| 457 | |
| 458 | public enum RemoteMediator.InitializeAction { |
| 459 | enum_constant public static final androidx.paging.RemoteMediator.InitializeAction LAUNCH_INITIAL_REFRESH; |
| 460 | enum_constant public static final androidx.paging.RemoteMediator.InitializeAction SKIP_INITIAL_REFRESH; |
| 461 | } |
| 462 | |
| 463 | public abstract static sealed class RemoteMediator.MediatorResult { |
| 464 | } |
| 465 | |
| 466 | public static final class RemoteMediator.MediatorResult.Error extends androidx.paging.RemoteMediator.MediatorResult { |
| 467 | ctor public RemoteMediator.MediatorResult.Error(Throwable throwable); |
| 468 | method public Throwable getThrowable(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 469 | property public final Throwable throwable; |
Dustin Lam | 4f1cfee | 2020-03-09 09:49:22 -0700 | [diff] [blame] | 470 | } |
| 471 | |
| 472 | public static final class RemoteMediator.MediatorResult.Success extends androidx.paging.RemoteMediator.MediatorResult { |
Dustin Lam | d87aafe | 2020-04-16 19:31:51 -0700 | [diff] [blame] | 473 | ctor public RemoteMediator.MediatorResult.Success(boolean endOfPaginationReached); |
| 474 | method public boolean endOfPaginationReached(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 475 | property public final boolean endOfPaginationReached; |
Dustin Lam | 4f1cfee | 2020-03-09 09:49:22 -0700 | [diff] [blame] | 476 | } |
| 477 | |
Yigit Boyar | f86129d | 2020-10-09 11:34:07 -0700 | [diff] [blame] | 478 | public final class RemoteMediatorAccessorKt { |
| 479 | } |
| 480 | |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 481 | public final class SeparatorsKt { |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 482 | } |
| 483 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 484 | } |
| 485 | |
Yigit Boyar | c77bc77 | 2019-12-20 13:14:12 -0800 | [diff] [blame] | 486 | package androidx.paging.multicast { |
| 487 | |
| 488 | public final class ChannelManagerKt { |
| 489 | } |
| 490 | |
| 491 | } |
| 492 | |