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