blob: 4db4b0f5bac9eeb8e91ed762355f7900414aee69 [file] [log] [blame]
Aurimas Liutikas3aa5a202020-10-05 09:42:14 -07001// Signature format: 4.0
Alan Viverettecd1aae02019-08-28 15:28:57 -04002package androidx.paging {
3
Dustin Lamc019a722020-01-10 13:37:18 -08004 public final class CachedPagingDataKt {
Chris Craik1933a6a2020-03-11 12:11:30 -07005 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 Boyarc77bc772019-12-20 13:14:12 -08006 }
7
Dustin Lambfb40382020-01-14 15:17:18 -08008 public final class CancelableChannelFlowKt {
9 }
10
Chris Craike8cdbf12020-05-14 16:17:01 -070011 public final class CombinedLoadStates {
Aurimas Liutikasd4a0b672021-02-23 09:05:20 -080012 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 Craike8cdbf12020-05-14 16:17:01 -070013 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 Liutikas6ac8c642020-09-29 13:48:32 -070019 property public final androidx.paging.LoadStates? mediator;
Chris Craike8cdbf12020-05-14 16:17:01 -070020 property public final androidx.paging.LoadState prepend;
21 property public final androidx.paging.LoadState refresh;
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -070022 property public final androidx.paging.LoadStates source;
Chris Craike8cdbf12020-05-14 16:17:01 -070023 }
24
Alan Viverettecd1aae02019-08-28 15:28:57 -040025 public abstract class DataSource<Key, Value> {
26 method @AnyThread public void addInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback);
Alan Viverettecd1aae02019-08-28 15:28:57 -040027 method @AnyThread public void invalidate();
28 method @WorkerThread public boolean isInvalid();
Alan Viverettecd1aae02019-08-28 15:28:57 -040029 method public <ToValue> androidx.paging.DataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
Aurimas Liutikas6273a952021-10-19 22:51:01 +000030 method @kotlin.jvm.JvmSynthetic public <ToValue> androidx.paging.DataSource<Key,ToValue>! map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
Alan Viverettecd1aae02019-08-28 15:28:57 -040031 method public <ToValue> androidx.paging.DataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function);
Aurimas Liutikas6273a952021-10-19 22:51:01 +000032 method @kotlin.jvm.JvmSynthetic public <ToValue> androidx.paging.DataSource<Key,ToValue>! mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function);
Alan Viverettecd1aae02019-08-28 15:28:57 -040033 method @AnyThread public void removeInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback);
Alan Viverettecd1aae02019-08-28 15:28:57 -040034 property @WorkerThread public boolean isInvalid;
35 }
36
Alan Viverettecd1aae02019-08-28 15:28:57 -040037 public abstract static class DataSource.Factory<Key, Value> {
38 ctor public DataSource.Factory();
Aurimas Liutikas3aa5a202020-10-05 09:42:14 -070039 method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(optional kotlinx.coroutines.CoroutineDispatcher fetchDispatcher);
Dustin Lamcaee0ab2020-01-10 15:59:37 -080040 method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory();
Alan Viverettecd1aae02019-08-28 15:28:57 -040041 method public abstract androidx.paging.DataSource<Key,Value> create();
42 method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
Aurimas Liutikas6273a952021-10-19 22:51:01 +000043 method @kotlin.jvm.JvmSynthetic public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue>! map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
Alan Viverettecd1aae02019-08-28 15:28:57 -040044 method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function);
Aurimas Liutikas6273a952021-10-19 22:51:01 +000045 method @kotlin.jvm.JvmSynthetic public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue>! mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function);
Alan Viverettecd1aae02019-08-28 15:28:57 -040046 }
47
Dustin Lam0680b892020-09-03 20:19:24 -070048 public static fun interface DataSource.InvalidatedCallback {
Alan Viverettecd1aae02019-08-28 15:28:57 -040049 method @AnyThread public void onInvalidated();
50 }
51
Aurimas Liutikas3ec16722020-05-27 13:08:04 -070052 @kotlin.RequiresOptIn public @interface ExperimentalPagingApi {
Dustin Lam34f31e42020-04-28 23:45:46 -070053 }
54
Yigit Boyarfd72a0a2021-01-11 09:47:33 -080055 public final class FlowExtKt {
56 }
57
Yigit Boyarbc5e56152021-09-21 23:18:51 -070058 public final class HintHandlerKt {
59 }
60
Dustin Lam82e10ba2021-01-07 10:57:28 -080061 public final class InvalidatingPagingSourceFactory<Key, Value> implements kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> {
Clara F5ac03b42020-11-19 21:07:43 -050062 ctor public InvalidatingPagingSourceFactory(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
Dustin Lam82e10ba2021-01-07 10:57:28 -080063 method public void invalidate();
64 method public androidx.paging.PagingSource<Key,Value> invoke();
Clara F5ac03b42020-11-19 21:07:43 -050065 }
66
Dustin Lamcee0e1e2020-02-04 15:12:18 -080067 @Deprecated public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> {
68 ctor @Deprecated public ItemKeyedDataSource();
69 method @Deprecated public abstract Key getKey(Value item);
70 method @Deprecated public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback);
71 method @Deprecated public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback);
72 method @Deprecated public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback);
73 method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
74 method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
75 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);
76 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);
Alan Viverettecd1aae02019-08-28 15:28:57 -040077 }
78
Dustin Lamcee0e1e2020-02-04 15:12:18 -080079 @Deprecated public abstract static class ItemKeyedDataSource.LoadCallback<Value> {
80 ctor @Deprecated public ItemKeyedDataSource.LoadCallback();
81 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data);
Alan Viverettecd1aae02019-08-28 15:28:57 -040082 }
83
Dustin Lamcee0e1e2020-02-04 15:12:18 -080084 @Deprecated public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> {
85 ctor @Deprecated public ItemKeyedDataSource.LoadInitialCallback();
86 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount);
Alan Viverettecd1aae02019-08-28 15:28:57 -040087 }
88
Dustin Lamcee0e1e2020-02-04 15:12:18 -080089 @Deprecated public static class ItemKeyedDataSource.LoadInitialParams<Key> {
90 ctor @Deprecated public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled);
91 field @Deprecated public final boolean placeholdersEnabled;
92 field @Deprecated public final Key? requestedInitialKey;
93 field @Deprecated public final int requestedLoadSize;
Alan Viverettecd1aae02019-08-28 15:28:57 -040094 }
95
Dustin Lamcee0e1e2020-02-04 15:12:18 -080096 @Deprecated public static class ItemKeyedDataSource.LoadParams<Key> {
97 ctor @Deprecated public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize);
98 field @Deprecated public final Key key;
99 field @Deprecated public final int requestedLoadSize;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400100 }
101
Dustin Lamcf7bd952020-07-23 19:26:03 -0700102 public final class ItemSnapshotList<T> extends kotlin.collections.AbstractList<T> {
Aurimas Liutikasa3bfa992020-08-05 16:32:56 -0700103 ctor public ItemSnapshotList(@IntRange(from=0) int placeholdersBefore, @IntRange(from=0) int placeholdersAfter, java.util.List<? extends T> items);
Dustin Lamcf7bd952020-07-23 19:26:03 -0700104 method public T? get(int index);
105 method public java.util.List<T> getItems();
106 method public int getPlaceholdersAfter();
107 method public int getPlaceholdersBefore();
108 method public int getSize();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700109 property public final java.util.List<T> items;
110 property public final int placeholdersAfter;
111 property public final int placeholdersBefore;
Dustin Lamcf7bd952020-07-23 19:26:03 -0700112 property public int size;
113 }
114
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700115 public abstract sealed class LoadState {
Dustin Lamcc1dd3d2020-04-13 23:56:45 -0700116 method public final boolean getEndOfPaginationReached();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700117 property public final boolean endOfPaginationReached;
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700118 }
119
120 public static final class LoadState.Error extends androidx.paging.LoadState {
Chris Craike8cdbf12020-05-14 16:17:01 -0700121 ctor public LoadState.Error(Throwable error);
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700122 method public Throwable getError();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700123 property public final Throwable error;
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700124 }
125
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700126 public static final class LoadState.Loading extends androidx.paging.LoadState {
Aurimas Liutikasafd4a792020-06-22 13:35:25 -0700127 field public static final androidx.paging.LoadState.Loading INSTANCE;
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700128 }
129
Dustin Lamcc1dd3d2020-04-13 23:56:45 -0700130 public static final class LoadState.NotLoading extends androidx.paging.LoadState {
Chris Craike8cdbf12020-05-14 16:17:01 -0700131 ctor public LoadState.NotLoading(boolean endOfPaginationReached);
132 }
133
134 public final class LoadStates {
135 ctor public LoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append);
136 method public androidx.paging.LoadState component1();
137 method public androidx.paging.LoadState component2();
138 method public androidx.paging.LoadState component3();
139 method public androidx.paging.LoadStates copy(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append);
Chris Craike8cdbf12020-05-14 16:17:01 -0700140 method public androidx.paging.LoadState getAppend();
141 method public androidx.paging.LoadState getPrepend();
142 method public androidx.paging.LoadState getRefresh();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700143 property public final androidx.paging.LoadState append;
144 property public final androidx.paging.LoadState prepend;
145 property public final androidx.paging.LoadState refresh;
Dustin Lamcc1dd3d2020-04-13 23:56:45 -0700146 }
147
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700148 public enum LoadType {
Dustin Lam9c713672020-04-21 13:28:58 -0700149 enum_constant public static final androidx.paging.LoadType APPEND;
150 enum_constant public static final androidx.paging.LoadType PREPEND;
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700151 enum_constant public static final androidx.paging.LoadType REFRESH;
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700152 }
153
Dustin Lam190a76e2020-09-28 13:54:08 -0700154 public final class PageFetcherSnapshotKt {
155 }
156
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800157 @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> {
158 ctor @Deprecated public PageKeyedDataSource();
159 method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback);
160 method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback);
161 method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback);
162 method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
163 method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
164 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);
165 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);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400166 }
167
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800168 @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> {
169 ctor @Deprecated public PageKeyedDataSource.LoadCallback();
170 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? adjacentPageKey);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400171 }
172
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800173 @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> {
174 ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback();
175 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey);
176 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? previousPageKey, Key? nextPageKey);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400177 }
178
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800179 @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> {
180 ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled);
181 field @Deprecated public final boolean placeholdersEnabled;
182 field @Deprecated public final int requestedLoadSize;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400183 }
184
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800185 @Deprecated public static class PageKeyedDataSource.LoadParams<Key> {
186 ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize);
187 field @Deprecated public final Key key;
188 field @Deprecated public final int requestedLoadSize;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400189 }
190
Dustin Lam74ee0172020-02-10 17:17:19 -0800191 @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> {
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700192 method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, androidx.paging.PagedList.Callback callback);
Dustin Lam74ee0172020-02-10 17:17:19 -0800193 method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback);
194 method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
195 method @Deprecated public abstract void detach();
196 method @Deprecated public T? get(int index);
197 method @Deprecated public final androidx.paging.PagedList.Config getConfig();
Alan Viverettecd1aae02019-08-28 15:28:57 -0400198 method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource();
Dustin Lam74ee0172020-02-10 17:17:19 -0800199 method @Deprecated public abstract Object? getLastKey();
200 method @Deprecated public final int getLoadedCount();
201 method @Deprecated public final int getPositionOffset();
202 method @Deprecated public int getSize();
203 method @Deprecated public abstract boolean isDetached();
204 method @Deprecated public boolean isImmutable();
205 method @Deprecated public final void loadAround(int index);
206 method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback);
207 method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
208 method @Deprecated public void retry();
209 method @Deprecated public final java.util.List<T> snapshot();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700210 property public final androidx.paging.PagedList.Config config;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400211 property @Deprecated public final androidx.paging.DataSource<?,T> dataSource;
212 property public abstract boolean isDetached;
213 property public boolean isImmutable;
214 property public abstract Object? lastKey;
Aurimas Liutikas15e364c2019-09-05 16:14:55 -0700215 property public final int loadedCount;
216 property public final int positionOffset;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400217 property public int size;
218 }
219
Dustin Lam74ee0172020-02-10 17:17:19 -0800220 @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> {
221 ctor @Deprecated public PagedList.BoundaryCallback();
222 method @Deprecated public void onItemAtEndLoaded(T itemAtEnd);
223 method @Deprecated public void onItemAtFrontLoaded(T itemAtFront);
224 method @Deprecated public void onZeroItemsLoaded();
Alan Viverettecd1aae02019-08-28 15:28:57 -0400225 }
226
Dustin Lam74ee0172020-02-10 17:17:19 -0800227 @Deprecated public static final class PagedList.Builder<Key, Value> {
Alan Viverettecd1aae02019-08-28 15:28:57 -0400228 ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config);
229 ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, int pageSize);
Dustin Lam74ee0172020-02-10 17:17:19 -0800230 ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config);
231 ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize);
232 method @Deprecated public androidx.paging.PagedList<Value> build();
233 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback);
234 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope);
235 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchDispatcher(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400236 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor);
Dustin Lam74ee0172020-02-10 17:17:19 -0800237 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey);
238 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyDispatcher(kotlinx.coroutines.CoroutineDispatcher notifyDispatcher);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400239 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyExecutor(java.util.concurrent.Executor notifyExecutor);
240 }
241
Dustin Lam74ee0172020-02-10 17:17:19 -0800242 @Deprecated public abstract static class PagedList.Callback {
243 ctor @Deprecated public PagedList.Callback();
244 method @Deprecated public abstract void onChanged(int position, int count);
245 method @Deprecated public abstract void onInserted(int position, int count);
246 method @Deprecated public abstract void onRemoved(int position, int count);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400247 }
248
Dustin Lam74ee0172020-02-10 17:17:19 -0800249 @Deprecated public static final class PagedList.Config {
250 field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
251 field @Deprecated public final boolean enablePlaceholders;
252 field @Deprecated public final int initialLoadSizeHint;
253 field @Deprecated public final int maxSize;
254 field @Deprecated public final int pageSize;
255 field @Deprecated public final int prefetchDistance;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400256 }
257
Dustin Lam74ee0172020-02-10 17:17:19 -0800258 @Deprecated public static final class PagedList.Config.Builder {
259 ctor @Deprecated public PagedList.Config.Builder();
260 method @Deprecated public androidx.paging.PagedList.Config build();
261 method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders);
262 method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint);
263 method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize);
264 method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize);
265 method @Deprecated public androidx.paging.PagedList.Config.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400266 }
267
Alan Viverettecd1aae02019-08-28 15:28:57 -0400268 public final class PagedListConfigKt {
Aurimas Liutikas6273a952021-10-19 22:51:01 +0000269 method @kotlin.jvm.JvmSynthetic public static androidx.paging.PagedList.Config! Config(int pageSize, optional int prefetchDistance, optional boolean enablePlaceholders, optional int initialLoadSizeHint, optional int maxSize);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400270 }
271
272 public final class PagedListKt {
Aurimas Liutikas6273a952021-10-19 22:51:01 +0000273 method @Deprecated @kotlin.jvm.JvmSynthetic public static <Key extends java.lang.Object, Value> androidx.paging.PagedList<Value>! PagedList(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config, java.util.concurrent.Executor notifyExecutor, java.util.concurrent.Executor fetchExecutor, optional androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback, optional Key? initialKey);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400274 }
275
Dustin Lam84cc4902020-04-10 14:50:35 -0700276 public final class Pager<Key, Value> {
Aurimas Liutikasd4a0b672021-02-23 09:05:20 -0800277 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);
278 ctor public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
Dustin Lam84cc4902020-04-10 14:50:35 -0700279 ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
280 method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow();
281 property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow;
282 }
283
Chris Craik251f4132020-01-03 09:45:19 -0800284 public final class PagingConfig {
Aurimas Liutikasd4a0b672021-02-23 09:05:20 -0800285 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);
286 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);
287 ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize);
288 ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders);
289 ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance);
Dustin Lam7a1c56e2020-06-10 11:52:58 -0700290 ctor public PagingConfig(int pageSize);
Aurimas Liutikasafd4a792020-06-22 13:35:25 -0700291 field public static final androidx.paging.PagingConfig.Companion Companion;
Chris Craik251f4132020-01-03 09:45:19 -0800292 field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
293 field public final boolean enablePlaceholders;
294 field public final int initialLoadSize;
Dustin Lamd9ccaf32020-03-30 19:06:01 -0700295 field public final int jumpThreshold;
Chris Craik251f4132020-01-03 09:45:19 -0800296 field public final int maxSize;
297 field public final int pageSize;
298 field public final int prefetchDistance;
299 }
300
Chris Craik251f4132020-01-03 09:45:19 -0800301 public static final class PagingConfig.Companion {
302 }
303
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800304 public final class PagingData<T> {
Dustin Lamb82a27f2020-02-04 17:09:34 -0800305 method public static <T> androidx.paging.PagingData<T> empty();
Dustin Lam21534892021-11-05 16:27:51 -0700306 method public static <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates);
307 method public static <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates);
Dustin Lame50166f2020-07-20 16:41:16 -0700308 method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
Dustin Lam21534892021-11-05 16:27:51 -0700309 method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates);
310 method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates);
Aurimas Liutikasafd4a792020-06-22 13:35:25 -0700311 field public static final androidx.paging.PagingData.Companion Companion;
Dustin Lamb82a27f2020-02-04 17:09:34 -0800312 }
313
314 public static final class PagingData.Companion {
315 method public <T> androidx.paging.PagingData<T> empty();
Dustin Lam21534892021-11-05 16:27:51 -0700316 method public <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates);
317 method public <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates);
Dustin Lame50166f2020-07-20 16:41:16 -0700318 method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
Dustin Lam21534892021-11-05 16:27:51 -0700319 method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates);
320 method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates);
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800321 }
322
Dustin Lam348fa7e2020-12-09 18:24:18 -0800323 public final class PagingDataTransforms {
324 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);
Aurimas Liutikas6273a952021-10-19 22:51:01 +0000325 method @CheckResult @kotlin.jvm.JvmSynthetic public static <T> androidx.paging.PagingData<T>! filter(androidx.paging.PagingData<T>, kotlin.jvm.functions.Function2<? super T,? super kotlin.coroutines.Continuation<? super java.lang.Boolean>,?> predicate);
Dustin Lam348fa7e2020-12-09 18:24:18 -0800326 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);
Aurimas Liutikas6273a952021-10-19 22:51:01 +0000327 method @CheckResult @kotlin.jvm.JvmSynthetic public static <T extends java.lang.Object, R> androidx.paging.PagingData<R>! flatMap(androidx.paging.PagingData<T>, kotlin.jvm.functions.Function2<? super T,? super kotlin.coroutines.Continuation<? super java.lang.Iterable<? extends R>>,?> transform);
Dustin Lam86445f12020-12-28 15:21:36 -0800328 method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
Dustin Lam348fa7e2020-12-09 18:24:18 -0800329 method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, T item);
Dustin Lam86445f12020-12-28 15:21:36 -0800330 method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
Dustin Lam348fa7e2020-12-09 18:24:18 -0800331 method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, T item);
Dustin Lam86445f12020-12-28 15:21:36 -0800332 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 Lam348fa7e2020-12-09 18:24:18 -0800333 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);
Aurimas Liutikas6273a952021-10-19 22:51:01 +0000334 method @CheckResult @kotlin.jvm.JvmSynthetic public static <T extends R, R> androidx.paging.PagingData<R>! insertSeparators(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, kotlin.jvm.functions.Function3<? super T,? super T,? super kotlin.coroutines.Continuation<? super R>,?> generator);
Dustin Lam348fa7e2020-12-09 18:24:18 -0800335 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);
Aurimas Liutikas6273a952021-10-19 22:51:01 +0000336 method @CheckResult @kotlin.jvm.JvmSynthetic public static <T extends java.lang.Object, R> androidx.paging.PagingData<R>! map(androidx.paging.PagingData<T>, kotlin.jvm.functions.Function2<? super T,? super kotlin.coroutines.Continuation<? super R>,?> transform);
Chris Craik76219092020-03-09 11:30:01 -0700337 }
338
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800339 public abstract class PagingSource<Key, Value> {
340 ctor public PagingSource();
341 method public final boolean getInvalid();
Dustin Lam537c9682020-03-31 21:43:45 -0700342 method public boolean getJumpingSupported();
Dustin Lam39321212020-05-14 13:40:47 -0700343 method public boolean getKeyReuseSupported();
Dustin Lameb830bc2021-01-11 13:27:46 -0800344 method public abstract Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state);
Yigit Boyarcfd12582020-12-01 17:01:50 -0800345 method public final void invalidate();
Louis Pullen-Freilich10b53cd2020-04-30 12:35:30 +0100346 method public abstract suspend Object? load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>> p);
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800347 method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
348 method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
349 property public final boolean invalid;
Dustin Lam537c9682020-03-31 21:43:45 -0700350 property public boolean jumpingSupported;
Dustin Lam39321212020-05-14 13:40:47 -0700351 property public boolean keyReuseSupported;
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800352 }
353
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700354 public abstract static sealed class PagingSource.LoadParams<Key> {
355 method public abstract Key? getKey();
356 method public final int getLoadSize();
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700357 method public final boolean getPlaceholdersEnabled();
358 property public abstract Key? key;
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700359 property public final int loadSize;
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700360 property public final boolean placeholdersEnabled;
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700361 }
362
363 public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
Dustin Lam343bb562020-05-04 13:53:12 -0700364 ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled);
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700365 method public Key getKey();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700366 property public Key key;
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700367 }
368
369 public static final class PagingSource.LoadParams.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
Dustin Lam343bb562020-05-04 13:53:12 -0700370 ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled);
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700371 method public Key getKey();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700372 property public Key key;
Yigit Boyarc44fdb22020-04-24 19:55:10 -0700373 }
374
375 public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
Dustin Lam343bb562020-05-04 13:53:12 -0700376 ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled);
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800377 method public Key? getKey();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700378 property public Key? key;
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800379 }
380
381 public abstract static sealed class PagingSource.LoadResult<Key, Value> {
382 }
383
384 public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
385 ctor public PagingSource.LoadResult.Error(Throwable throwable);
386 method public Throwable component1();
387 method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable);
388 method public Throwable getThrowable();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700389 property public final Throwable throwable;
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800390 }
391
Clara Fok6bd2347f2021-07-09 12:53:22 -0700392 public static final class PagingSource.LoadResult.Invalid<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
393 ctor public PagingSource.LoadResult.Invalid();
394 }
395
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800396 public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
Aurimas Liutikas727dc6b2021-10-26 15:27:51 -0700397 ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, optional @IntRange(from=androidx.paging.PagingSource.LoadResult.Page.COUNT_UNDEFINED.toLong()) int itemsBefore, optional @IntRange(from=androidx.paging.PagingSource.LoadResult.Page.COUNT_UNDEFINED.toLong()) int itemsAfter);
Dustin Lamef4a8732020-07-01 18:24:30 -0700398 ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey);
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800399 method public java.util.List<Value> component1();
400 method public Key? component2();
401 method public Key? component3();
402 method public int component4();
403 method public int component5();
Aurimas Liutikas5790b292021-06-22 12:29:59 -0700404 method public androidx.paging.PagingSource.LoadResult.Page<Key,Value> copy(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, @IntRange(from=-2147483648L) int itemsBefore, @IntRange(from=-2147483648L) int itemsAfter);
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800405 method public java.util.List<Value> getData();
406 method public int getItemsAfter();
407 method public int getItemsBefore();
408 method public Key? getNextKey();
409 method public Key? getPrevKey();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700410 property public final java.util.List<Value> data;
411 property public final int itemsAfter;
412 property public final int itemsBefore;
413 property public final Key? nextKey;
414 property public final Key? prevKey;
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800415 field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000
Aurimas Liutikasafd4a792020-06-22 13:35:25 -0700416 field public static final androidx.paging.PagingSource.LoadResult.Page.Companion Companion;
Dustin Lam4b8e0d02020-01-09 15:55:17 -0800417 }
418
419 public static final class PagingSource.LoadResult.Page.Companion {
420 }
421
422 public final class PagingSourceKt {
423 }
424
Dustin Lamb0346022020-01-17 15:08:13 -0800425 public final class PagingState<Key, Value> {
Aurimas Liutikasa3bfa992020-08-05 16:32:56 -0700426 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 Lam779cddb2020-03-26 12:28:43 -0700427 method public Value? closestItemToPosition(int anchorPosition);
428 method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition);
Dustin Lam5c9567f2020-06-17 13:44:16 -0700429 method public Value? firstItemOrNull();
Dustin Lam779cddb2020-03-26 12:28:43 -0700430 method public Integer? getAnchorPosition();
Dustin Lam1249ec02020-03-25 11:25:34 -0700431 method public androidx.paging.PagingConfig getConfig();
Dustin Lamb0346022020-01-17 15:08:13 -0800432 method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages();
Dustin Lam5c9567f2020-06-17 13:44:16 -0700433 method public boolean isEmpty();
434 method public Value? lastItemOrNull();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700435 property public final Integer? anchorPosition;
436 property public final androidx.paging.PagingConfig config;
437 property public final java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages;
Dustin Lamb0346022020-01-17 15:08:13 -0800438 }
439
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800440 @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> {
441 ctor @Deprecated public PositionalDataSource();
442 method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount);
443 method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount);
444 method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback);
445 method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback);
446 method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function);
447 method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function);
448 method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function);
449 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);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400450 }
451
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800452 @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> {
453 ctor @Deprecated public PositionalDataSource.LoadInitialCallback();
454 method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount);
455 method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400456 }
457
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800458 @Deprecated public static class PositionalDataSource.LoadInitialParams {
459 ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled);
460 field @Deprecated public final int pageSize;
461 field @Deprecated public final boolean placeholdersEnabled;
462 field @Deprecated public final int requestedLoadSize;
463 field @Deprecated public final int requestedStartPosition;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400464 }
465
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800466 @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> {
467 ctor @Deprecated public PositionalDataSource.LoadRangeCallback();
468 method @Deprecated public abstract void onResult(java.util.List<? extends T> data);
Alan Viverettecd1aae02019-08-28 15:28:57 -0400469 }
470
Dustin Lamcee0e1e2020-02-04 15:12:18 -0800471 @Deprecated public static class PositionalDataSource.LoadRangeParams {
472 ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize);
473 field @Deprecated public final int loadSize;
474 field @Deprecated public final int startPosition;
Alan Viverettecd1aae02019-08-28 15:28:57 -0400475 }
476
Dustin Lam937dfa92020-04-29 22:10:15 -0700477 @androidx.paging.ExperimentalPagingApi public abstract class RemoteMediator<Key, Value> {
Dustin Lam4f1cfee2020-03-09 09:49:22 -0700478 ctor public RemoteMediator();
Aurimas Liutikas5790b292021-06-22 12:29:59 -0700479 method public suspend Object? initialize(kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.InitializeAction> p);
Louis Pullen-Freilich10b53cd2020-04-30 12:35:30 +0100480 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 Lam4f1cfee2020-03-09 09:49:22 -0700481 }
482
483 public enum RemoteMediator.InitializeAction {
484 enum_constant public static final androidx.paging.RemoteMediator.InitializeAction LAUNCH_INITIAL_REFRESH;
485 enum_constant public static final androidx.paging.RemoteMediator.InitializeAction SKIP_INITIAL_REFRESH;
486 }
487
488 public abstract static sealed class RemoteMediator.MediatorResult {
489 }
490
491 public static final class RemoteMediator.MediatorResult.Error extends androidx.paging.RemoteMediator.MediatorResult {
492 ctor public RemoteMediator.MediatorResult.Error(Throwable throwable);
493 method public Throwable getThrowable();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700494 property public final Throwable throwable;
Dustin Lam4f1cfee2020-03-09 09:49:22 -0700495 }
496
497 public static final class RemoteMediator.MediatorResult.Success extends androidx.paging.RemoteMediator.MediatorResult {
Dustin Lamd87aafe2020-04-16 19:31:51 -0700498 ctor public RemoteMediator.MediatorResult.Success(boolean endOfPaginationReached);
Aurimas Liutikas5790b292021-06-22 12:29:59 -0700499 method public boolean getEndOfPaginationReached();
Aurimas Liutikas6ac8c642020-09-29 13:48:32 -0700500 property public final boolean endOfPaginationReached;
Dustin Lam4f1cfee2020-03-09 09:49:22 -0700501 }
502
Yigit Boyarf86129d2020-10-09 11:34:07 -0700503 public final class RemoteMediatorAccessorKt {
504 }
505
Chris Craik29bc4692019-12-05 09:44:57 -0800506 public final class SeparatorsKt {
Chris Craik29bc4692019-12-05 09:44:57 -0800507 }
508
Yigit Boyarf3673802020-12-28 12:08:30 -0800509 public final class SimpleChannelFlowKt {
510 }
511
Dustin Lam86445f12020-12-28 15:21:36 -0800512 public enum TerminalSeparatorType {
513 enum_constant public static final androidx.paging.TerminalSeparatorType FULLY_COMPLETE;
514 enum_constant public static final androidx.paging.TerminalSeparatorType SOURCE_COMPLETE;
515 }
516
Alan Viverettecd1aae02019-08-28 15:28:57 -0400517}
518
Dustin Lam21534892021-11-05 16:27:51 -0700519package androidx.paging.internal {
520
521 public final class ConstantsKt {
522 }
523
524}
525