1// Signature format: 4.0
2package androidx.paging {
3
4  public final class CachedPagingDataKt {
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);
6  }
7
8  public final class CancelableChannelFlowKt {
9  }
10
11  public final class CombinedLoadStates {
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);
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;
19    property public final androidx.paging.LoadStates? mediator;
20    property public final androidx.paging.LoadState prepend;
21    property public final androidx.paging.LoadState refresh;
22    property public final androidx.paging.LoadStates source;
23  }
24
25  public abstract class DataSource<Key, Value> {
26    method @AnyThread public void addInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback);
27    method @AnyThread public void invalidate();
28    method @WorkerThread public boolean isInvalid();
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);
32    property @WorkerThread public boolean isInvalid;
33  }
34
35  public abstract static class DataSource.Factory<Key, Value> {
36    ctor public DataSource.Factory();
37    method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory();
38    method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(optional kotlinx.coroutines.CoroutineDispatcher fetchDispatcher);
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);
42  }
43
44  public static fun interface DataSource.InvalidatedCallback {
45    method @AnyThread public void onInvalidated();
46  }
47
48  @kotlin.RequiresOptIn public @interface ExperimentalPagingApi {
49  }
50
51  public final class FlowExtKt {
52  }
53
54  public final class InvalidatingPagingSourceFactory<Key, Value> implements kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> {
55    ctor public InvalidatingPagingSourceFactory(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
56    method public void invalidate();
57    method public androidx.paging.PagingSource<Key,Value> invoke();
58  }
59
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);
70  }
71
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);
75  }
76
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);
80  }
81
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;
87  }
88
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;
93  }
94
95  public final class ItemSnapshotList<T> extends kotlin.collections.AbstractList<T> {
96    ctor public ItemSnapshotList(@IntRange(from=0) int placeholdersBefore, @IntRange(from=0) int placeholdersAfter, java.util.List<? extends T> items);
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();
102    property public final java.util.List<T> items;
103    property public final int placeholdersAfter;
104    property public final int placeholdersBefore;
105    property public int size;
106  }
107
108  public abstract sealed class LoadState {
109    method public final boolean getEndOfPaginationReached();
110    property public final boolean endOfPaginationReached;
111  }
112
113  public static final class LoadState.Error extends androidx.paging.LoadState {
114    ctor public LoadState.Error(Throwable error);
115    method public Throwable getError();
116    property public final Throwable error;
117  }
118
119  public static final class LoadState.Loading extends androidx.paging.LoadState {
120    field public static final androidx.paging.LoadState.Loading INSTANCE;
121  }
122
123  public static final class LoadState.NotLoading extends androidx.paging.LoadState {
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 @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public inline void forEach(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> op);
134    method public androidx.paging.LoadState getAppend();
135    method public androidx.paging.LoadState getPrepend();
136    method public androidx.paging.LoadState getRefresh();
137    property public final androidx.paging.LoadState append;
138    property public final androidx.paging.LoadState prepend;
139    property public final androidx.paging.LoadState refresh;
140  }
141
142  public enum LoadType {
143    enum_constant public static final androidx.paging.LoadType APPEND;
144    enum_constant public static final androidx.paging.LoadType PREPEND;
145    enum_constant public static final androidx.paging.LoadType REFRESH;
146  }
147
148  public final class PageFetcherSnapshotKt {
149  }
150
151  @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> {
152    ctor @Deprecated public PageKeyedDataSource();
153    method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback);
154    method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback);
155    method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback);
156    method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
157    method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
158    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);
159    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);
160  }
161
162  @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> {
163    ctor @Deprecated public PageKeyedDataSource.LoadCallback();
164    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? adjacentPageKey);
165  }
166
167  @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> {
168    ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback();
169    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey);
170    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? previousPageKey, Key? nextPageKey);
171  }
172
173  @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> {
174    ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled);
175    field @Deprecated public final boolean placeholdersEnabled;
176    field @Deprecated public final int requestedLoadSize;
177  }
178
179  @Deprecated public static class PageKeyedDataSource.LoadParams<Key> {
180    ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize);
181    field @Deprecated public final Key key;
182    field @Deprecated public final int requestedLoadSize;
183  }
184
185  @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> {
186    method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback);
187    method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, androidx.paging.PagedList.Callback callback);
188    method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
189    method @Deprecated public abstract void detach();
190    method @Deprecated public T? get(int index);
191    method @Deprecated public final androidx.paging.PagedList.Config getConfig();
192    method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource();
193    method @Deprecated public abstract Object? getLastKey();
194    method @Deprecated public final int getLoadedCount();
195    method @Deprecated public final int getPositionOffset();
196    method @Deprecated public int getSize();
197    method @Deprecated public abstract boolean isDetached();
198    method @Deprecated public boolean isImmutable();
199    method @Deprecated public final void loadAround(int index);
200    method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback);
201    method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
202    method @Deprecated public void retry();
203    method @Deprecated public final java.util.List<T> snapshot();
204    property @Deprecated public final androidx.paging.PagedList.Config config;
205    property @Deprecated public final androidx.paging.DataSource<?,T> dataSource;
206    property @Deprecated public abstract boolean isDetached;
207    property @Deprecated public boolean isImmutable;
208    property @Deprecated public abstract Object? lastKey;
209    property @Deprecated public final int loadedCount;
210    property @Deprecated public final int positionOffset;
211    property @Deprecated public int size;
212  }
213
214  @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> {
215    ctor @Deprecated public PagedList.BoundaryCallback();
216    method @Deprecated public void onItemAtEndLoaded(T itemAtEnd);
217    method @Deprecated public void onItemAtFrontLoaded(T itemAtFront);
218    method @Deprecated public void onZeroItemsLoaded();
219  }
220
221  @Deprecated public static final class PagedList.Builder<Key, Value> {
222    ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config);
223    ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, int pageSize);
224    ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config);
225    ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize);
226    method @Deprecated public androidx.paging.PagedList<Value> build();
227    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback);
228    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope);
229    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchDispatcher(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher);
230    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor);
231    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey);
232    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyDispatcher(kotlinx.coroutines.CoroutineDispatcher notifyDispatcher);
233    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyExecutor(java.util.concurrent.Executor notifyExecutor);
234  }
235
236  @Deprecated public abstract static class PagedList.Callback {
237    ctor @Deprecated public PagedList.Callback();
238    method @Deprecated public abstract void onChanged(int position, int count);
239    method @Deprecated public abstract void onInserted(int position, int count);
240    method @Deprecated public abstract void onRemoved(int position, int count);
241  }
242
243  @Deprecated public static final class PagedList.Config {
244    field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
245    field @Deprecated public final boolean enablePlaceholders;
246    field @Deprecated public final int initialLoadSizeHint;
247    field @Deprecated public final int maxSize;
248    field @Deprecated public final int pageSize;
249    field @Deprecated public final int prefetchDistance;
250  }
251
252  @Deprecated public static final class PagedList.Config.Builder {
253    ctor @Deprecated public PagedList.Config.Builder();
254    method @Deprecated public androidx.paging.PagedList.Config build();
255    method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders);
256    method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint);
257    method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize);
258    method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize);
259    method @Deprecated public androidx.paging.PagedList.Config.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance);
260  }
261
262  public final class PagedListConfigKt {
263  }
264
265  public final class PagedListKt {
266  }
267
268  public final class Pager<Key, Value> {
269    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);
270    ctor public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
271    ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
272    method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow();
273    property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow;
274  }
275
276  public final class PagingConfig {
277    ctor public PagingConfig(int pageSize);
278    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance);
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, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize);
281    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);
282    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);
283    field public static final androidx.paging.PagingConfig.Companion Companion;
284    field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
285    field public final boolean enablePlaceholders;
286    field public final int initialLoadSize;
287    field public final int jumpThreshold;
288    field public final int maxSize;
289    field public final int pageSize;
290    field public final int prefetchDistance;
291  }
292
293  public static final class PagingConfig.Companion {
294  }
295
296  public final class PagingData<T> {
297    method public static <T> androidx.paging.PagingData<T> empty();
298    method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
299    field public static final androidx.paging.PagingData.Companion Companion;
300  }
301
302  public static final class PagingData.Companion {
303    method public <T> androidx.paging.PagingData<T> empty();
304    method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
305  }
306
307  public final class PagingDataTransforms {
308    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);
309    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);
310    method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
311    method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, T item);
312    method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
313    method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, T item);
314    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);
315    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);
316    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);
317  }
318
319  public abstract class PagingSource<Key, Value> {
320    ctor public PagingSource();
321    method public final boolean getInvalid();
322    method public boolean getJumpingSupported();
323    method public boolean getKeyReuseSupported();
324    method public abstract Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state);
325    method public final void invalidate();
326    method public abstract suspend Object? load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>> p);
327    method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
328    method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
329    property public final boolean invalid;
330    property public boolean jumpingSupported;
331    property public boolean keyReuseSupported;
332  }
333
334  public abstract static sealed class PagingSource.LoadParams<Key> {
335    method public abstract Key? getKey();
336    method public final int getLoadSize();
337    method public final boolean getPlaceholdersEnabled();
338    property public abstract Key? key;
339    property public final int loadSize;
340    property public final boolean placeholdersEnabled;
341  }
342
343  public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
344    ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled);
345    method public Key getKey();
346    property public Key key;
347  }
348
349  public static final class PagingSource.LoadParams.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
350    ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled);
351    method public Key getKey();
352    property public Key key;
353  }
354
355  public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
356    ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled);
357    method public Key? getKey();
358    property public Key? key;
359  }
360
361  public abstract static sealed class PagingSource.LoadResult<Key, Value> {
362  }
363
364  public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
365    ctor public PagingSource.LoadResult.Error(Throwable throwable);
366    method public Throwable component1();
367    method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable);
368    method public Throwable getThrowable();
369    property public final Throwable throwable;
370  }
371
372  public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
373    ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey);
374    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);
375    method public java.util.List<Value> component1();
376    method public Key? component2();
377    method public Key? component3();
378    method public int component4();
379    method public int component5();
380    method public androidx.paging.PagingSource.LoadResult.Page<Key,Value> copy(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, int itemsBefore, int itemsAfter);
381    method public java.util.List<Value> getData();
382    method public int getItemsAfter();
383    method public int getItemsBefore();
384    method public Key? getNextKey();
385    method public Key? getPrevKey();
386    property public final java.util.List<Value> data;
387    property public final int itemsAfter;
388    property public final int itemsBefore;
389    property public final Key? nextKey;
390    property public final Key? prevKey;
391    field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000
392    field public static final androidx.paging.PagingSource.LoadResult.Page.Companion Companion;
393  }
394
395  public static final class PagingSource.LoadResult.Page.Companion {
396  }
397
398  public final class PagingSourceKt {
399  }
400
401  public final class PagingState<Key, Value> {
402    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);
403    method public Value? closestItemToPosition(int anchorPosition);
404    method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition);
405    method public Value? firstItemOrNull();
406    method public Integer? getAnchorPosition();
407    method public androidx.paging.PagingConfig getConfig();
408    method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages();
409    method public boolean isEmpty();
410    method public Value? lastItemOrNull();
411    property public final Integer? anchorPosition;
412    property public final androidx.paging.PagingConfig config;
413    property public final java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages;
414  }
415
416  @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> {
417    ctor @Deprecated public PositionalDataSource();
418    method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount);
419    method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount);
420    method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback);
421    method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback);
422    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function);
423    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function);
424    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function);
425    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);
426  }
427
428  @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> {
429    ctor @Deprecated public PositionalDataSource.LoadInitialCallback();
430    method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position);
431    method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount);
432  }
433
434  @Deprecated public static class PositionalDataSource.LoadInitialParams {
435    ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled);
436    field @Deprecated public final int pageSize;
437    field @Deprecated public final boolean placeholdersEnabled;
438    field @Deprecated public final int requestedLoadSize;
439    field @Deprecated public final int requestedStartPosition;
440  }
441
442  @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> {
443    ctor @Deprecated public PositionalDataSource.LoadRangeCallback();
444    method @Deprecated public abstract void onResult(java.util.List<? extends T> data);
445  }
446
447  @Deprecated public static class PositionalDataSource.LoadRangeParams {
448    ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize);
449    field @Deprecated public final int loadSize;
450    field @Deprecated public final int startPosition;
451  }
452
453  @androidx.paging.ExperimentalPagingApi public abstract class RemoteMediator<Key, Value> {
454    ctor public RemoteMediator();
455    method public suspend Object? initialize(kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.InitializeAction> $completion);
456    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);
457  }
458
459  public enum RemoteMediator.InitializeAction {
460    enum_constant public static final androidx.paging.RemoteMediator.InitializeAction LAUNCH_INITIAL_REFRESH;
461    enum_constant public static final androidx.paging.RemoteMediator.InitializeAction SKIP_INITIAL_REFRESH;
462  }
463
464  public abstract static sealed class RemoteMediator.MediatorResult {
465  }
466
467  public static final class RemoteMediator.MediatorResult.Error extends androidx.paging.RemoteMediator.MediatorResult {
468    ctor public RemoteMediator.MediatorResult.Error(Throwable throwable);
469    method public Throwable getThrowable();
470    property public final Throwable throwable;
471  }
472
473  public static final class RemoteMediator.MediatorResult.Success extends androidx.paging.RemoteMediator.MediatorResult {
474    ctor public RemoteMediator.MediatorResult.Success(boolean endOfPaginationReached);
475    method public boolean endOfPaginationReached();
476    property public final boolean endOfPaginationReached;
477  }
478
479  public final class RemoteMediatorAccessorKt {
480  }
481
482  public final class SeparatorsKt {
483  }
484
485  public final class SimpleChannelFlowKt {
486  }
487
488  public enum TerminalSeparatorType {
489    enum_constant public static final androidx.paging.TerminalSeparatorType FULLY_COMPLETE;
490    enum_constant public static final androidx.paging.TerminalSeparatorType SOURCE_COMPLETE;
491  }
492
493}
494
495package androidx.paging.multicast {
496
497  public final class ChannelManagerKt {
498  }
499
500}
501
502