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