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