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  @RestrictTo(androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP) public enum DiffingChangePayload {
49    enum_constant public static final androidx.paging.DiffingChangePayload ITEM_TO_PLACEHOLDER;
50    enum_constant public static final androidx.paging.DiffingChangePayload PLACEHOLDER_POSITION_CHANGE;
51    enum_constant public static final androidx.paging.DiffingChangePayload PLACEHOLDER_TO_ITEM;
52  }
53
54  @kotlin.RequiresOptIn public @interface ExperimentalPagingApi {
55  }
56
57  public final class FlowExtKt {
58  }
59
60  public final class InvalidatingPagingSourceFactory<Key, Value> implements kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> {
61    ctor public InvalidatingPagingSourceFactory(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
62    method public void invalidate();
63    method public androidx.paging.PagingSource<Key,Value> invoke();
64  }
65
66  @Deprecated public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> {
67    ctor @Deprecated public ItemKeyedDataSource();
68    method @Deprecated public abstract Key getKey(Value item);
69    method @Deprecated public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback);
70    method @Deprecated public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback);
71    method @Deprecated public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback);
72    method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
73    method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
74    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);
75    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);
76  }
77
78  @Deprecated public abstract static class ItemKeyedDataSource.LoadCallback<Value> {
79    ctor @Deprecated public ItemKeyedDataSource.LoadCallback();
80    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data);
81  }
82
83  @Deprecated public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> {
84    ctor @Deprecated public ItemKeyedDataSource.LoadInitialCallback();
85    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount);
86  }
87
88  @Deprecated public static class ItemKeyedDataSource.LoadInitialParams<Key> {
89    ctor @Deprecated public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled);
90    field @Deprecated public final boolean placeholdersEnabled;
91    field @Deprecated public final Key? requestedInitialKey;
92    field @Deprecated public final int requestedLoadSize;
93  }
94
95  @Deprecated public static class ItemKeyedDataSource.LoadParams<Key> {
96    ctor @Deprecated public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize);
97    field @Deprecated public final Key key;
98    field @Deprecated public final int requestedLoadSize;
99  }
100
101  public final class ItemSnapshotList<T> extends kotlin.collections.AbstractList<T> {
102    ctor public ItemSnapshotList(@IntRange(from=0) int placeholdersBefore, @IntRange(from=0) int placeholdersAfter, java.util.List<? extends T> items);
103    method public T? get(int index);
104    method public java.util.List<T> getItems();
105    method public int getPlaceholdersAfter();
106    method public int getPlaceholdersBefore();
107    method public int getSize();
108    property public final java.util.List<T> items;
109    property public final int placeholdersAfter;
110    property public final int placeholdersBefore;
111    property public int size;
112  }
113
114  public abstract sealed class LoadState {
115    method public final boolean getEndOfPaginationReached();
116    property public final boolean endOfPaginationReached;
117  }
118
119  public static final class LoadState.Error extends androidx.paging.LoadState {
120    ctor public LoadState.Error(Throwable error);
121    method public Throwable getError();
122    property public final Throwable error;
123  }
124
125  public static final class LoadState.Loading extends androidx.paging.LoadState {
126    field public static final androidx.paging.LoadState.Loading INSTANCE;
127  }
128
129  public static final class LoadState.NotLoading extends androidx.paging.LoadState {
130    ctor public LoadState.NotLoading(boolean endOfPaginationReached);
131  }
132
133  public final class LoadStates {
134    ctor public LoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append);
135    method public androidx.paging.LoadState component1();
136    method public androidx.paging.LoadState component2();
137    method public androidx.paging.LoadState component3();
138    method public androidx.paging.LoadStates copy(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append);
139    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);
140    method public androidx.paging.LoadState getAppend();
141    method public androidx.paging.LoadState getPrepend();
142    method public androidx.paging.LoadState getRefresh();
143    property public final androidx.paging.LoadState append;
144    property public final androidx.paging.LoadState prepend;
145    property public final androidx.paging.LoadState refresh;
146  }
147
148  public enum LoadType {
149    enum_constant public static final androidx.paging.LoadType APPEND;
150    enum_constant public static final androidx.paging.LoadType PREPEND;
151    enum_constant public static final androidx.paging.LoadType REFRESH;
152  }
153
154  public final class PageFetcherSnapshotKt {
155  }
156
157  @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);
166  }
167
168  @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);
171  }
172
173  @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);
177  }
178
179  @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;
183  }
184
185  @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;
189  }
190
191  @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> {
192    method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback);
193    method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, 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();
198    method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource();
199    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();
210    property @Deprecated public final androidx.paging.PagedList.Config config;
211    property @Deprecated public final androidx.paging.DataSource<?,T> dataSource;
212    property @Deprecated public abstract boolean isDetached;
213    property @Deprecated public boolean isImmutable;
214    property @Deprecated public abstract Object? lastKey;
215    property @Deprecated public final int loadedCount;
216    property @Deprecated public final int positionOffset;
217    property @Deprecated public int size;
218  }
219
220  @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();
225  }
226
227  @Deprecated public static final class PagedList.Builder<Key, Value> {
228    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);
230    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);
236    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor);
237    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);
239    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyExecutor(java.util.concurrent.Executor notifyExecutor);
240  }
241
242  @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);
247  }
248
249  @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;
256  }
257
258  @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);
266  }
267
268  public final class PagedListConfigKt {
269  }
270
271  public final class PagedListKt {
272  }
273
274  public final class Pager<Key, Value> {
275    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);
276    ctor public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
277    ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
278    method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow();
279    property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow;
280  }
281
282  public final class PagingConfig {
283    ctor public PagingConfig(int pageSize);
284    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance);
285    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders);
286    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize);
287    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);
288    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);
289    field public static final androidx.paging.PagingConfig.Companion Companion;
290    field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
291    field public final boolean enablePlaceholders;
292    field public final int initialLoadSize;
293    field public final int jumpThreshold;
294    field public final int maxSize;
295    field public final int pageSize;
296    field public final int prefetchDistance;
297  }
298
299  public static final class PagingConfig.Companion {
300  }
301
302  public final class PagingData<T> {
303    method public static <T> androidx.paging.PagingData<T> empty();
304    method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
305    field public static final androidx.paging.PagingData.Companion Companion;
306  }
307
308  public static final class PagingData.Companion {
309    method public <T> androidx.paging.PagingData<T> empty();
310    method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
311  }
312
313  public final class PagingDataTransforms {
314    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);
315    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);
316    method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
317    method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, T item);
318    method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
319    method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, T item);
320    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);
321    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);
322    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);
323  }
324
325  public abstract class PagingSource<Key, Value> {
326    ctor public PagingSource();
327    method public final boolean getInvalid();
328    method public boolean getJumpingSupported();
329    method public boolean getKeyReuseSupported();
330    method public abstract Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state);
331    method public final void invalidate();
332    method public abstract suspend Object? load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>> p);
333    method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
334    method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
335    property public final boolean invalid;
336    property public boolean jumpingSupported;
337    property public boolean keyReuseSupported;
338  }
339
340  public abstract static sealed class PagingSource.LoadParams<Key> {
341    method public abstract Key? getKey();
342    method public final int getLoadSize();
343    method public final boolean getPlaceholdersEnabled();
344    property public abstract Key? key;
345    property public final int loadSize;
346    property public final boolean placeholdersEnabled;
347  }
348
349  public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
350    ctor public PagingSource.LoadParams.Append(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.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
356    ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled);
357    method public Key getKey();
358    property public Key key;
359  }
360
361  public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
362    ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled);
363    method public Key? getKey();
364    property public Key? key;
365  }
366
367  public abstract static sealed class PagingSource.LoadResult<Key, Value> {
368  }
369
370  public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
371    ctor public PagingSource.LoadResult.Error(Throwable throwable);
372    method public Throwable component1();
373    method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable);
374    method public Throwable getThrowable();
375    property public final Throwable throwable;
376  }
377
378  public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
379    ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey);
380    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);
381    method public java.util.List<Value> component1();
382    method public Key? component2();
383    method public Key? component3();
384    method public int component4();
385    method public int component5();
386    method public androidx.paging.PagingSource.LoadResult.Page<Key,Value> copy(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, int itemsBefore, int itemsAfter);
387    method public java.util.List<Value> getData();
388    method public int getItemsAfter();
389    method public int getItemsBefore();
390    method public Key? getNextKey();
391    method public Key? getPrevKey();
392    property public final java.util.List<Value> data;
393    property public final int itemsAfter;
394    property public final int itemsBefore;
395    property public final Key? nextKey;
396    property public final Key? prevKey;
397    field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000
398    field public static final androidx.paging.PagingSource.LoadResult.Page.Companion Companion;
399  }
400
401  public static final class PagingSource.LoadResult.Page.Companion {
402  }
403
404  public final class PagingSourceKt {
405  }
406
407  public final class PagingState<Key, Value> {
408    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);
409    method public Value? closestItemToPosition(int anchorPosition);
410    method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition);
411    method public Value? firstItemOrNull();
412    method public Integer? getAnchorPosition();
413    method public androidx.paging.PagingConfig getConfig();
414    method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages();
415    method public boolean isEmpty();
416    method public Value? lastItemOrNull();
417    property public final Integer? anchorPosition;
418    property public final androidx.paging.PagingConfig config;
419    property public final java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages;
420  }
421
422  @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> {
423    ctor @Deprecated public PositionalDataSource();
424    method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount);
425    method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount);
426    method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback);
427    method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback);
428    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function);
429    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function);
430    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function);
431    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);
432  }
433
434  @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> {
435    ctor @Deprecated public PositionalDataSource.LoadInitialCallback();
436    method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position);
437    method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount);
438  }
439
440  @Deprecated public static class PositionalDataSource.LoadInitialParams {
441    ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled);
442    field @Deprecated public final int pageSize;
443    field @Deprecated public final boolean placeholdersEnabled;
444    field @Deprecated public final int requestedLoadSize;
445    field @Deprecated public final int requestedStartPosition;
446  }
447
448  @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> {
449    ctor @Deprecated public PositionalDataSource.LoadRangeCallback();
450    method @Deprecated public abstract void onResult(java.util.List<? extends T> data);
451  }
452
453  @Deprecated public static class PositionalDataSource.LoadRangeParams {
454    ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize);
455    field @Deprecated public final int loadSize;
456    field @Deprecated public final int startPosition;
457  }
458
459  @androidx.paging.ExperimentalPagingApi public abstract class RemoteMediator<Key, Value> {
460    ctor public RemoteMediator();
461    method public suspend Object? initialize(kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.InitializeAction> $completion);
462    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);
463  }
464
465  public enum RemoteMediator.InitializeAction {
466    enum_constant public static final androidx.paging.RemoteMediator.InitializeAction LAUNCH_INITIAL_REFRESH;
467    enum_constant public static final androidx.paging.RemoteMediator.InitializeAction SKIP_INITIAL_REFRESH;
468  }
469
470  public abstract static sealed class RemoteMediator.MediatorResult {
471  }
472
473  public static final class RemoteMediator.MediatorResult.Error extends androidx.paging.RemoteMediator.MediatorResult {
474    ctor public RemoteMediator.MediatorResult.Error(Throwable throwable);
475    method public Throwable getThrowable();
476    property public final Throwable throwable;
477  }
478
479  public static final class RemoteMediator.MediatorResult.Success extends androidx.paging.RemoteMediator.MediatorResult {
480    ctor public RemoteMediator.MediatorResult.Success(boolean endOfPaginationReached);
481    method public boolean endOfPaginationReached();
482    property public final boolean endOfPaginationReached;
483  }
484
485  public final class RemoteMediatorAccessorKt {
486  }
487
488  public final class SeparatorsKt {
489  }
490
491  public final class SimpleChannelFlowKt {
492  }
493
494  public enum TerminalSeparatorType {
495    enum_constant public static final androidx.paging.TerminalSeparatorType FULLY_COMPLETE;
496    enum_constant public static final androidx.paging.TerminalSeparatorType SOURCE_COMPLETE;
497  }
498
499}
500
501package androidx.paging.multicast {
502
503  public final class ChannelManagerKt {
504  }
505
506}
507
508