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 { |
Aurimas Liutikas | d4a0b67 | 2021-02-23 09:05:20 -0800 | [diff] [blame] | 12 | ctor public CombinedLoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append, androidx.paging.LoadStates source, optional 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 | |
Yigit Boyar | fd72a0a | 2021-01-11 09:47:33 -0800 | [diff] [blame] | 51 | public final class FlowExtKt { |
| 52 | } |
| 53 | |
Dustin Lam | 82e10ba | 2021-01-07 10:57:28 -0800 | [diff] [blame] | 54 | public final class InvalidatingPagingSourceFactory<Key, Value> implements kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> { |
Clara F | 5ac03b4 | 2020-11-19 21:07:43 -0500 | [diff] [blame] | 55 | ctor public InvalidatingPagingSourceFactory(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
Dustin Lam | 82e10ba | 2021-01-07 10:57:28 -0800 | [diff] [blame] | 56 | method public void invalidate(); |
| 57 | method public androidx.paging.PagingSource<Key,Value> invoke(); |
Clara F | 5ac03b4 | 2020-11-19 21:07:43 -0500 | [diff] [blame] | 58 | } |
| 59 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 60 | @Deprecated public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
| 61 | ctor @Deprecated public ItemKeyedDataSource(); |
| 62 | method @Deprecated public abstract Key getKey(Value item); |
| 63 | method @Deprecated public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
| 64 | method @Deprecated public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
| 65 | method @Deprecated public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback); |
| 66 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 67 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
| 68 | 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); |
| 69 | 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] | 70 | } |
| 71 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 72 | @Deprecated public abstract static class ItemKeyedDataSource.LoadCallback<Value> { |
| 73 | ctor @Deprecated public ItemKeyedDataSource.LoadCallback(); |
| 74 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 75 | } |
| 76 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 77 | @Deprecated public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> { |
| 78 | ctor @Deprecated public ItemKeyedDataSource.LoadInitialCallback(); |
| 79 | 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] | 80 | } |
| 81 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 82 | @Deprecated public static class ItemKeyedDataSource.LoadInitialParams<Key> { |
| 83 | ctor @Deprecated public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled); |
| 84 | field @Deprecated public final boolean placeholdersEnabled; |
| 85 | field @Deprecated public final Key? requestedInitialKey; |
| 86 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 87 | } |
| 88 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 89 | @Deprecated public static class ItemKeyedDataSource.LoadParams<Key> { |
| 90 | ctor @Deprecated public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
| 91 | field @Deprecated public final Key key; |
| 92 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 93 | } |
| 94 | |
Dustin Lam | cf7bd95 | 2020-07-23 19:26:03 -0700 | [diff] [blame] | 95 | public final class ItemSnapshotList<T> extends kotlin.collections.AbstractList<T> { |
Aurimas Liutikas | a3bfa99 | 2020-08-05 16:32:56 -0700 | [diff] [blame] | 96 | 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] | 97 | method public T? get(int index); |
| 98 | method public java.util.List<T> getItems(); |
| 99 | method public int getPlaceholdersAfter(); |
| 100 | method public int getPlaceholdersBefore(); |
| 101 | method public int getSize(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 102 | property public final java.util.List<T> items; |
| 103 | property public final int placeholdersAfter; |
| 104 | property public final int placeholdersBefore; |
Dustin Lam | cf7bd95 | 2020-07-23 19:26:03 -0700 | [diff] [blame] | 105 | property public int size; |
| 106 | } |
| 107 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 108 | public abstract sealed class LoadState { |
Dustin Lam | cc1dd3d | 2020-04-13 23:56:45 -0700 | [diff] [blame] | 109 | method public final boolean getEndOfPaginationReached(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 110 | property public final boolean endOfPaginationReached; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | public static final class LoadState.Error extends androidx.paging.LoadState { |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 114 | ctor public LoadState.Error(Throwable error); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 115 | method public Throwable getError(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 116 | property public final Throwable error; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 117 | } |
| 118 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 119 | public static final class LoadState.Loading extends androidx.paging.LoadState { |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 120 | field public static final androidx.paging.LoadState.Loading INSTANCE; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 121 | } |
| 122 | |
Dustin Lam | cc1dd3d | 2020-04-13 23:56:45 -0700 | [diff] [blame] | 123 | public static final class LoadState.NotLoading extends androidx.paging.LoadState { |
Chris Craik | e8cdbf1 | 2020-05-14 16:17:01 -0700 | [diff] [blame] | 124 | ctor public LoadState.NotLoading(boolean endOfPaginationReached); |
| 125 | } |
| 126 | |
| 127 | public final class LoadStates { |
| 128 | ctor public LoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append); |
| 129 | method public androidx.paging.LoadState component1(); |
| 130 | method public androidx.paging.LoadState component2(); |
| 131 | method public androidx.paging.LoadState component3(); |
| 132 | method public androidx.paging.LoadStates copy(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append); |
| 133 | method public androidx.paging.LoadState getAppend(); |
| 134 | method public androidx.paging.LoadState getPrepend(); |
| 135 | method public androidx.paging.LoadState getRefresh(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 136 | property public final androidx.paging.LoadState append; |
| 137 | property public final androidx.paging.LoadState prepend; |
| 138 | property public final androidx.paging.LoadState refresh; |
Dustin Lam | cc1dd3d | 2020-04-13 23:56:45 -0700 | [diff] [blame] | 139 | } |
| 140 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 141 | public enum LoadType { |
Dustin Lam | 9c71367 | 2020-04-21 13:28:58 -0700 | [diff] [blame] | 142 | enum_constant public static final androidx.paging.LoadType APPEND; |
| 143 | enum_constant public static final androidx.paging.LoadType PREPEND; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 144 | enum_constant public static final androidx.paging.LoadType REFRESH; |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 145 | } |
| 146 | |
Dustin Lam | 190a76e | 2020-09-28 13:54:08 -0700 | [diff] [blame] | 147 | public final class PageFetcherSnapshotKt { |
| 148 | } |
| 149 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 150 | @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
| 151 | ctor @Deprecated public PageKeyedDataSource(); |
| 152 | method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
| 153 | method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
| 154 | method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback); |
| 155 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 156 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
| 157 | 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); |
| 158 | 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] | 159 | } |
| 160 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 161 | @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> { |
| 162 | ctor @Deprecated public PageKeyedDataSource.LoadCallback(); |
| 163 | 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] | 164 | } |
| 165 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 166 | @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> { |
| 167 | ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback(); |
| 168 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey); |
| 169 | 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] | 170 | } |
| 171 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 172 | @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> { |
| 173 | ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled); |
| 174 | field @Deprecated public final boolean placeholdersEnabled; |
| 175 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 176 | } |
| 177 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 178 | @Deprecated public static class PageKeyedDataSource.LoadParams<Key> { |
| 179 | ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
| 180 | field @Deprecated public final Key key; |
| 181 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 182 | } |
| 183 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 184 | @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> { |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 185 | 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] | 186 | method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback); |
| 187 | method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| 188 | method @Deprecated public abstract void detach(); |
| 189 | method @Deprecated public T? get(int index); |
| 190 | method @Deprecated public final androidx.paging.PagedList.Config getConfig(); |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 191 | method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource(); |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 192 | method @Deprecated public abstract Object? getLastKey(); |
| 193 | method @Deprecated public final int getLoadedCount(); |
| 194 | method @Deprecated public final int getPositionOffset(); |
| 195 | method @Deprecated public int getSize(); |
| 196 | method @Deprecated public abstract boolean isDetached(); |
| 197 | method @Deprecated public boolean isImmutable(); |
| 198 | method @Deprecated public final void loadAround(int index); |
| 199 | method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback); |
| 200 | method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| 201 | method @Deprecated public void retry(); |
| 202 | method @Deprecated public final java.util.List<T> snapshot(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 203 | property public final androidx.paging.PagedList.Config config; |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 204 | property @Deprecated public final androidx.paging.DataSource<?,T> dataSource; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 205 | property public abstract boolean isDetached; |
| 206 | property public boolean isImmutable; |
| 207 | property public abstract Object? lastKey; |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 208 | property public final int loadedCount; |
| 209 | property public final int positionOffset; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 210 | property public int size; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 211 | } |
| 212 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 213 | @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> { |
| 214 | ctor @Deprecated public PagedList.BoundaryCallback(); |
| 215 | method @Deprecated public void onItemAtEndLoaded(T itemAtEnd); |
| 216 | method @Deprecated public void onItemAtFrontLoaded(T itemAtFront); |
| 217 | method @Deprecated public void onZeroItemsLoaded(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 218 | } |
| 219 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 220 | @Deprecated public static final class PagedList.Builder<Key, Value> { |
Dustin Lam | aa0515c | 2019-07-02 19:35:29 -0700 | [diff] [blame] | 221 | ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config); |
| 222 | 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] | 223 | ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config); |
| 224 | ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize); |
| 225 | method @Deprecated public androidx.paging.PagedList<Value> build(); |
| 226 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); |
| 227 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); |
| 228 | 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] | 229 | 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] | 230 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey); |
| 231 | 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] | 232 | 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] | 233 | } |
| 234 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 235 | @Deprecated public abstract static class PagedList.Callback { |
| 236 | ctor @Deprecated public PagedList.Callback(); |
| 237 | method @Deprecated public abstract void onChanged(int position, int count); |
| 238 | method @Deprecated public abstract void onInserted(int position, int count); |
| 239 | method @Deprecated public abstract void onRemoved(int position, int count); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 240 | } |
| 241 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 242 | @Deprecated public static final class PagedList.Config { |
| 243 | field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 244 | field @Deprecated public final boolean enablePlaceholders; |
| 245 | field @Deprecated public final int initialLoadSizeHint; |
| 246 | field @Deprecated public final int maxSize; |
| 247 | field @Deprecated public final int pageSize; |
| 248 | field @Deprecated public final int prefetchDistance; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 249 | } |
| 250 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 251 | @Deprecated public static final class PagedList.Config.Builder { |
| 252 | ctor @Deprecated public PagedList.Config.Builder(); |
| 253 | method @Deprecated public androidx.paging.PagedList.Config build(); |
| 254 | method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders); |
| 255 | method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint); |
| 256 | method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize); |
| 257 | method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize); |
| 258 | 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] | 259 | } |
| 260 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 261 | public final class PagedListConfigKt { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 262 | } |
| 263 | |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 264 | public final class PagedListKt { |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 265 | } |
| 266 | |
Dustin Lam | 84cc490 | 2020-04-10 14:50:35 -0700 | [diff] [blame] | 267 | public final class Pager<Key, Value> { |
Aurimas Liutikas | d4a0b67 | 2021-02-23 09:05:20 -0800 | [diff] [blame] | 268 | ctor @androidx.paging.ExperimentalPagingApi public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, androidx.paging.RemoteMediator<Key,Value>? remoteMediator, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 269 | ctor public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
Dustin Lam | 84cc490 | 2020-04-10 14:50:35 -0700 | [diff] [blame] | 270 | ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 271 | method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow(); |
| 272 | property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow; |
| 273 | } |
| 274 | |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 275 | public final class PagingConfig { |
Aurimas Liutikas | d4a0b67 | 2021-02-23 09:05:20 -0800 | [diff] [blame] | 276 | ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize, optional @IntRange(from=2) int maxSize, optional int jumpThreshold); |
| 277 | ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize, optional @IntRange(from=2) int maxSize); |
| 278 | ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize); |
| 279 | ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders); |
| 280 | ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance); |
Dustin Lam | 7a1c56e | 2020-06-10 11:52:58 -0700 | [diff] [blame] | 281 | ctor public PagingConfig(int pageSize); |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 282 | field public static final androidx.paging.PagingConfig.Companion Companion; |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 283 | field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 284 | field public final boolean enablePlaceholders; |
| 285 | field public final int initialLoadSize; |
Dustin Lam | d9ccaf3 | 2020-03-30 19:06:01 -0700 | [diff] [blame] | 286 | field public final int jumpThreshold; |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 287 | field public final int maxSize; |
| 288 | field public final int pageSize; |
| 289 | field public final int prefetchDistance; |
| 290 | } |
| 291 | |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 292 | public static final class PagingConfig.Companion { |
| 293 | } |
| 294 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 295 | public final class PagingData<T> { |
Dustin Lam | b82a27f | 2020-02-04 17:09:34 -0800 | [diff] [blame] | 296 | method public static <T> androidx.paging.PagingData<T> empty(); |
Dustin Lam | e50166f | 2020-07-20 16:41:16 -0700 | [diff] [blame] | 297 | method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data); |
Aurimas Liutikas | afd4a79 | 2020-06-22 13:35:25 -0700 | [diff] [blame] | 298 | field public static final androidx.paging.PagingData.Companion Companion; |
Dustin Lam | b82a27f | 2020-02-04 17:09:34 -0800 | [diff] [blame] | 299 | } |
| 300 | |
| 301 | public static final class PagingData.Companion { |
| 302 | method public <T> androidx.paging.PagingData<T> empty(); |
Dustin Lam | e50166f | 2020-07-20 16:41:16 -0700 | [diff] [blame] | 303 | method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 304 | } |
| 305 | |
Dustin Lam | 348fa7e | 2020-12-09 18:24:18 -0800 | [diff] [blame] | 306 | public final class PagingDataTransforms { |
| 307 | method @CheckResult public static <T> androidx.paging.PagingData<T> filter(androidx.paging.PagingData<T>, java.util.concurrent.Executor executor, kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); |
| 308 | method @CheckResult public static <T, R> androidx.paging.PagingData<R> flatMap(androidx.paging.PagingData<T>, java.util.concurrent.Executor executor, kotlin.jvm.functions.Function1<? super T,? extends java.lang.Iterable<? extends R>> transform); |
Dustin Lam | 86445f1 | 2020-12-28 15:21:36 -0800 | [diff] [blame] | 309 | method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item); |
Dustin Lam | 348fa7e | 2020-12-09 18:24:18 -0800 | [diff] [blame] | 310 | method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, T item); |
Dustin Lam | 86445f1 | 2020-12-28 15:21:36 -0800 | [diff] [blame] | 311 | method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item); |
Dustin Lam | 348fa7e | 2020-12-09 18:24:18 -0800 | [diff] [blame] | 312 | method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, T item); |
Dustin Lam | 86445f1 | 2020-12-28 15:21:36 -0800 | [diff] [blame] | 313 | method @CheckResult public static <R, T extends R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, java.util.concurrent.Executor executor, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
Dustin Lam | 348fa7e | 2020-12-09 18:24:18 -0800 | [diff] [blame] | 314 | method @CheckResult public static <R, T extends R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T>, java.util.concurrent.Executor executor, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
| 315 | method @CheckResult public static <T, R> androidx.paging.PagingData<R> map(androidx.paging.PagingData<T>, java.util.concurrent.Executor executor, kotlin.jvm.functions.Function1<? super T,? extends R> transform); |
Chris Craik | 7621909 | 2020-03-09 11:30:01 -0700 | [diff] [blame] | 316 | } |
| 317 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 318 | public abstract class PagingSource<Key, Value> { |
| 319 | ctor public PagingSource(); |
| 320 | method public final boolean getInvalid(); |
Dustin Lam | 537c968 | 2020-03-31 21:43:45 -0700 | [diff] [blame] | 321 | method public boolean getJumpingSupported(); |
Dustin Lam | 3932121 | 2020-05-14 13:40:47 -0700 | [diff] [blame] | 322 | method public boolean getKeyReuseSupported(); |
Dustin Lam | eb830bc | 2021-01-11 13:27:46 -0800 | [diff] [blame] | 323 | method public abstract Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state); |
Yigit Boyar | cfd1258 | 2020-12-01 17:01:50 -0800 | [diff] [blame] | 324 | method public final void invalidate(); |
Louis Pullen-Freilich | 10b53cd | 2020-04-30 12:35:30 +0100 | [diff] [blame] | 325 | 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] | 326 | method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 327 | method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 328 | property public final boolean invalid; |
Dustin Lam | 537c968 | 2020-03-31 21:43:45 -0700 | [diff] [blame] | 329 | property public boolean jumpingSupported; |
Dustin Lam | 3932121 | 2020-05-14 13:40:47 -0700 | [diff] [blame] | 330 | property public boolean keyReuseSupported; |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 331 | } |
| 332 | |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 333 | public abstract static sealed class PagingSource.LoadParams<Key> { |
| 334 | method public abstract Key? getKey(); |
| 335 | method public final int getLoadSize(); |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 336 | method public final boolean getPlaceholdersEnabled(); |
| 337 | property public abstract Key? key; |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 338 | property public final int loadSize; |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 339 | property public final boolean placeholdersEnabled; |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 340 | } |
| 341 | |
| 342 | public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> { |
Dustin Lam | 343bb56 | 2020-05-04 13:53:12 -0700 | [diff] [blame] | 343 | ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled); |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 344 | method public Key getKey(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 345 | property public Key key; |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 346 | } |
| 347 | |
| 348 | public static final class PagingSource.LoadParams.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> { |
Dustin Lam | 343bb56 | 2020-05-04 13:53:12 -0700 | [diff] [blame] | 349 | ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled); |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 350 | method public Key getKey(); |
Aurimas Liutikas | 6ac8c64 | 2020-09-29 13:48:32 -0700 | [diff] [blame] | 351 | property public Key key; |
Yigit Boyar | c44fdb2 | 2020-04-24 19:55:10 -0700 | [diff] [blame] | 352 | } |
| 353 | |
| 354 | public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> { |
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 | d4a0b67 | 2021-02-23 09:05:20 -0800 | [diff] [blame] | 372 | ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, optional @IntRange(from=COUNT_UNDEFINED.toLong()) int itemsBefore, optional @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 | |
Yigit Boyar | f367380 | 2020-12-28 12:08:30 -0800 | [diff] [blame] | 484 | public final class SimpleChannelFlowKt { |
| 485 | } |
| 486 | |
Dustin Lam | 86445f1 | 2020-12-28 15:21:36 -0800 | [diff] [blame] | 487 | public enum TerminalSeparatorType { |
| 488 | enum_constant public static final androidx.paging.TerminalSeparatorType FULLY_COMPLETE; |
| 489 | enum_constant public static final androidx.paging.TerminalSeparatorType SOURCE_COMPLETE; |
| 490 | } |
| 491 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 492 | } |
| 493 | |
Yigit Boyar | c77bc77 | 2019-12-20 13:14:12 -0800 | [diff] [blame] | 494 | package androidx.paging.multicast { |
| 495 | |
| 496 | public final class ChannelManagerKt { |
| 497 | } |
| 498 | |
| 499 | } |
| 500 | |