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