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  public final class FlowExtKt {
49  }
50
51  public final class HintHandlerKt {
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 public androidx.paging.LoadState getAppend();
134    method public androidx.paging.LoadState getPrepend();
135    method public androidx.paging.LoadState getRefresh();
136    property public final androidx.paging.LoadState append;
137    property public final androidx.paging.LoadState prepend;
138    property public final androidx.paging.LoadState refresh;
139  }
140
141  public enum LoadType {
142    enum_constant public static final androidx.paging.LoadType APPEND;
143    enum_constant public static final androidx.paging.LoadType PREPEND;
144    enum_constant public static final androidx.paging.LoadType REFRESH;
145  }
146
147  public final class PageFetcherSnapshotKt {
148  }
149
150  @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> {
151    ctor @Deprecated public PageKeyedDataSource();
152    method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback);
153    method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback);
154    method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback);
155    method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function);
156    method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function);
157    method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function);
158    method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> mapByPage(kotlin.jvm.functions.Function1<? super java.util.List<? extends Value>,? extends java.util.List<? extends ToValue>> function);
159  }
160
161  @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> {
162    ctor @Deprecated public PageKeyedDataSource.LoadCallback();
163    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? adjacentPageKey);
164  }
165
166  @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> {
167    ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback();
168    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey);
169    method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? previousPageKey, Key? nextPageKey);
170  }
171
172  @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> {
173    ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled);
174    field @Deprecated public final boolean placeholdersEnabled;
175    field @Deprecated public final int requestedLoadSize;
176  }
177
178  @Deprecated public static class PageKeyedDataSource.LoadParams<Key> {
179    ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize);
180    field @Deprecated public final Key key;
181    field @Deprecated public final int requestedLoadSize;
182  }
183
184  @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> {
185    method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback);
186    method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, androidx.paging.PagedList.Callback callback);
187    method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
188    method @Deprecated public abstract void detach();
189    method @Deprecated public T? get(int index);
190    method @Deprecated public final androidx.paging.PagedList.Config getConfig();
191    method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource();
192    method @Deprecated public abstract Object? getLastKey();
193    method @Deprecated public final int getLoadedCount();
194    method @Deprecated public final int getPositionOffset();
195    method @Deprecated public int getSize();
196    method @Deprecated public abstract boolean isDetached();
197    method @Deprecated public boolean isImmutable();
198    method @Deprecated public final void loadAround(int index);
199    method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback);
200    method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener);
201    method @Deprecated public void retry();
202    method @Deprecated public final java.util.List<T> snapshot();
203    property @Deprecated public final androidx.paging.PagedList.Config config;
204    property @Deprecated public final androidx.paging.DataSource<?,T> dataSource;
205    property @Deprecated public abstract boolean isDetached;
206    property @Deprecated public boolean isImmutable;
207    property @Deprecated public abstract Object? lastKey;
208    property @Deprecated public final int loadedCount;
209    property @Deprecated public final int positionOffset;
210    property @Deprecated public int size;
211  }
212
213  @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> {
214    ctor @Deprecated public PagedList.BoundaryCallback();
215    method @Deprecated public void onItemAtEndLoaded(T itemAtEnd);
216    method @Deprecated public void onItemAtFrontLoaded(T itemAtFront);
217    method @Deprecated public void onZeroItemsLoaded();
218  }
219
220  @Deprecated public static final class PagedList.Builder<Key, Value> {
221    ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config);
222    ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, int pageSize);
223    ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config);
224    ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize);
225    method @Deprecated public androidx.paging.PagedList<Value> build();
226    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback);
227    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope);
228    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchDispatcher(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher);
229    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor);
230    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey);
231    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyDispatcher(kotlinx.coroutines.CoroutineDispatcher notifyDispatcher);
232    method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyExecutor(java.util.concurrent.Executor notifyExecutor);
233  }
234
235  @Deprecated public abstract static class PagedList.Callback {
236    ctor @Deprecated public PagedList.Callback();
237    method @Deprecated public abstract void onChanged(int position, int count);
238    method @Deprecated public abstract void onInserted(int position, int count);
239    method @Deprecated public abstract void onRemoved(int position, int count);
240  }
241
242  @Deprecated public static final class PagedList.Config {
243    field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
244    field @Deprecated public final boolean enablePlaceholders;
245    field @Deprecated public final int initialLoadSizeHint;
246    field @Deprecated public final int maxSize;
247    field @Deprecated public final int pageSize;
248    field @Deprecated public final int prefetchDistance;
249  }
250
251  @Deprecated public static final class PagedList.Config.Builder {
252    ctor @Deprecated public PagedList.Config.Builder();
253    method @Deprecated public androidx.paging.PagedList.Config build();
254    method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders);
255    method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint);
256    method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize);
257    method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize);
258    method @Deprecated public androidx.paging.PagedList.Config.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance);
259  }
260
261  public final class PagedListConfigKt {
262  }
263
264  public final class PagedListKt {
265  }
266
267  public final class Pager<Key, Value> {
268    ctor public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
269    ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory);
270    method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow();
271    property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow;
272  }
273
274  public final class PagingConfig {
275    ctor public PagingConfig(int pageSize);
276    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance);
277    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders);
278    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize);
279    ctor public PagingConfig(int pageSize, optional @IntRange(from=0) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1) int initialLoadSize, optional @IntRange(from=2) int maxSize);
280    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);
281    field public static final androidx.paging.PagingConfig.Companion Companion;
282    field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff
283    field public final boolean enablePlaceholders;
284    field public final int initialLoadSize;
285    field public final int jumpThreshold;
286    field public final int maxSize;
287    field public final int pageSize;
288    field public final int prefetchDistance;
289  }
290
291  public static final class PagingConfig.Companion {
292  }
293
294  public final class PagingData<T> {
295    method public static <T> androidx.paging.PagingData<T> empty();
296    method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
297    field public static final androidx.paging.PagingData.Companion Companion;
298  }
299
300  public static final class PagingData.Companion {
301    method public <T> androidx.paging.PagingData<T> empty();
302    method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data);
303  }
304
305  public final class PagingDataTransforms {
306    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);
307    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);
308    method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
309    method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, T item);
310    method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item);
311    method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, T item);
312    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);
313    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);
314    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);
315  }
316
317  public abstract class PagingSource<Key, Value> {
318    ctor public PagingSource();
319    method public final boolean getInvalid();
320    method public boolean getJumpingSupported();
321    method public boolean getKeyReuseSupported();
322    method public abstract Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state);
323    method public final void invalidate();
324    method public abstract suspend Object? load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>> p);
325    method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
326    method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback);
327    property public final boolean invalid;
328    property public boolean jumpingSupported;
329    property public boolean keyReuseSupported;
330  }
331
332  public abstract static sealed class PagingSource.LoadParams<Key> {
333    method public abstract Key? getKey();
334    method public final int getLoadSize();
335    method public final boolean getPlaceholdersEnabled();
336    property public abstract Key? key;
337    property public final int loadSize;
338    property public final boolean placeholdersEnabled;
339  }
340
341  public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
342    ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled);
343    method public Key getKey();
344    property public Key key;
345  }
346
347  public static final class PagingSource.LoadParams.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
348    ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled);
349    method public Key getKey();
350    property public Key key;
351  }
352
353  public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> {
354    ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled);
355    method public Key? getKey();
356    property public Key? key;
357  }
358
359  public abstract static sealed class PagingSource.LoadResult<Key, Value> {
360  }
361
362  public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
363    ctor public PagingSource.LoadResult.Error(Throwable throwable);
364    method public Throwable component1();
365    method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable);
366    method public Throwable getThrowable();
367    property public final Throwable throwable;
368  }
369
370  public static final class PagingSource.LoadResult.Invalid<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
371    ctor public PagingSource.LoadResult.Invalid();
372  }
373
374  public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> {
375    ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey);
376    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);
377    method public java.util.List<Value> component1();
378    method public Key? component2();
379    method public Key? component3();
380    method public int component4();
381    method public int component5();
382    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);
383    method public java.util.List<Value> getData();
384    method public int getItemsAfter();
385    method public int getItemsBefore();
386    method public Key? getNextKey();
387    method public Key? getPrevKey();
388    property public final java.util.List<Value> data;
389    property public final int itemsAfter;
390    property public final int itemsBefore;
391    property public final Key? nextKey;
392    property public final Key? prevKey;
393    field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000
394    field public static final androidx.paging.PagingSource.LoadResult.Page.Companion Companion;
395  }
396
397  public static final class PagingSource.LoadResult.Page.Companion {
398  }
399
400  public final class PagingSourceKt {
401  }
402
403  public final class PagingState<Key, Value> {
404    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);
405    method public Value? closestItemToPosition(int anchorPosition);
406    method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition);
407    method public Value? firstItemOrNull();
408    method public Integer? getAnchorPosition();
409    method public androidx.paging.PagingConfig getConfig();
410    method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages();
411    method public boolean isEmpty();
412    method public Value? lastItemOrNull();
413    property public final Integer? anchorPosition;
414    property public final androidx.paging.PagingConfig config;
415    property public final java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages;
416  }
417
418  @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> {
419    ctor @Deprecated public PositionalDataSource();
420    method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount);
421    method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount);
422    method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback);
423    method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback);
424    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function);
425    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function);
426    method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function);
427    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);
428  }
429
430  @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> {
431    ctor @Deprecated public PositionalDataSource.LoadInitialCallback();
432    method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position);
433    method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount);
434  }
435
436  @Deprecated public static class PositionalDataSource.LoadInitialParams {
437    ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled);
438    field @Deprecated public final int pageSize;
439    field @Deprecated public final boolean placeholdersEnabled;
440    field @Deprecated public final int requestedLoadSize;
441    field @Deprecated public final int requestedStartPosition;
442  }
443
444  @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> {
445    ctor @Deprecated public PositionalDataSource.LoadRangeCallback();
446    method @Deprecated public abstract void onResult(java.util.List<? extends T> data);
447  }
448
449  @Deprecated public static class PositionalDataSource.LoadRangeParams {
450    ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize);
451    field @Deprecated public final int loadSize;
452    field @Deprecated public final int startPosition;
453  }
454
455  public final class RemoteMediatorAccessorKt {
456  }
457
458  public final class SeparatorsKt {
459  }
460
461  public final class SimpleChannelFlowKt {
462  }
463
464  public enum TerminalSeparatorType {
465    enum_constant public static final androidx.paging.TerminalSeparatorType FULLY_COMPLETE;
466    enum_constant public static final androidx.paging.TerminalSeparatorType SOURCE_COMPLETE;
467  }
468
469}
470
471