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 CombinedLoadStates { 9 ctor public CombinedLoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append, androidx.paging.LoadStates source, optional androidx.paging.LoadStates? mediator); 10 method public androidx.paging.LoadState getAppend(); 11 method public androidx.paging.LoadStates? getMediator(); 12 method public androidx.paging.LoadState getPrepend(); 13 method public androidx.paging.LoadState getRefresh(); 14 method public androidx.paging.LoadStates getSource(); 15 method public boolean hasError(); 16 method public boolean isIdle(); 17 property public final androidx.paging.LoadState append; 18 property public final boolean hasError; 19 property public final boolean isIdle; 20 property public final androidx.paging.LoadStates? mediator; 21 property public final androidx.paging.LoadState prepend; 22 property public final androidx.paging.LoadState refresh; 23 property public final androidx.paging.LoadStates source; 24 } 25 26 public final class CombinedLoadStatesKt { 27 method public static suspend Object? awaitNotLoading(kotlinx.coroutines.flow.Flow<androidx.paging.CombinedLoadStates>, kotlin.coroutines.Continuation<androidx.paging.CombinedLoadStates?>); 28 } 29 30 public abstract class DataSource<Key, Value> { 31 method @AnyThread public void addInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); 32 method @AnyThread public void invalidate(); 33 method @WorkerThread public boolean isInvalid(); 34 method public <ToValue> androidx.paging.DataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); 35 method @kotlin.jvm.JvmSynthetic public <ToValue> androidx.paging.DataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); 36 method public <ToValue> androidx.paging.DataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); 37 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); 38 method @AnyThread public void removeInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); 39 property @WorkerThread public boolean isInvalid; 40 } 41 42 public abstract static class DataSource.Factory<Key, Value> { 43 ctor public DataSource.Factory(); 44 method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(); 45 method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(optional kotlinx.coroutines.CoroutineDispatcher fetchDispatcher); 46 method public abstract androidx.paging.DataSource<Key,Value> create(); 47 method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); 48 method @kotlin.jvm.JvmSynthetic public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); 49 method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); 50 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); 51 } 52 53 public static fun interface DataSource.InvalidatedCallback { 54 method @AnyThread public void onInvalidated(); 55 } 56 57 @SuppressCompatibility @kotlin.RequiresOptIn @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface ExperimentalPagingApi { 58 } 59 60 public final class InvalidatingPagingSourceFactory<Key, Value> implements androidx.paging.PagingSourceFactory<Key,Value> { 61 ctor public InvalidatingPagingSourceFactory(kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); 62 method public void invalidate(); 63 method public androidx.paging.PagingSource<Key,Value> invoke(); 64 } 65 66 @Deprecated public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { 67 ctor @Deprecated public ItemKeyedDataSource(); 68 method @Deprecated public abstract Key getKey(Value item); 69 method @Deprecated public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); 70 method @Deprecated public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); 71 method @Deprecated public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback); 72 method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); 73 method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); 74 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); 75 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); 76 } 77 78 @Deprecated public abstract static class ItemKeyedDataSource.LoadCallback<Value> { 79 ctor @Deprecated public ItemKeyedDataSource.LoadCallback(); 80 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data); 81 } 82 83 @Deprecated public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> { 84 ctor @Deprecated public ItemKeyedDataSource.LoadInitialCallback(); 85 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount); 86 } 87 88 @Deprecated public static class ItemKeyedDataSource.LoadInitialParams<Key> { 89 ctor @Deprecated public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled); 90 field @Deprecated public final boolean placeholdersEnabled; 91 field @Deprecated public final Key? requestedInitialKey; 92 field @Deprecated public final int requestedLoadSize; 93 } 94 95 @Deprecated public static class ItemKeyedDataSource.LoadParams<Key> { 96 ctor @Deprecated public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize); 97 field @Deprecated public final Key key; 98 field @Deprecated public final int requestedLoadSize; 99 } 100 101 public final class ItemSnapshotList<T> extends kotlin.collections.AbstractList<T?> { 102 ctor public ItemSnapshotList(@IntRange(from=0L) int placeholdersBefore, @IntRange(from=0L) int placeholdersAfter, java.util.List<? extends T> items); 103 method public T? get(int index); 104 method public java.util.List<T> getItems(); 105 method public int getPlaceholdersAfter(); 106 method public int getPlaceholdersBefore(); 107 method public int getSize(); 108 property public final java.util.List<T> items; 109 property public final int placeholdersAfter; 110 property public final int placeholdersBefore; 111 property public int size; 112 } 113 114 public abstract sealed class LoadState { 115 method public final boolean getEndOfPaginationReached(); 116 property public final boolean endOfPaginationReached; 117 } 118 119 public static final class LoadState.Error extends androidx.paging.LoadState { 120 ctor public LoadState.Error(Throwable error); 121 method public Throwable getError(); 122 property public final Throwable error; 123 } 124 125 public static final class LoadState.Loading extends androidx.paging.LoadState { 126 field public static final androidx.paging.LoadState.Loading INSTANCE; 127 } 128 129 public static final class LoadState.NotLoading extends androidx.paging.LoadState { 130 ctor public LoadState.NotLoading(boolean endOfPaginationReached); 131 } 132 133 public final class LoadStates { 134 ctor public LoadStates(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append); 135 method public androidx.paging.LoadState component1(); 136 method public androidx.paging.LoadState component2(); 137 method public androidx.paging.LoadState component3(); 138 method public androidx.paging.LoadStates copy(androidx.paging.LoadState refresh, androidx.paging.LoadState prepend, androidx.paging.LoadState append); 139 method public androidx.paging.LoadState getAppend(); 140 method public androidx.paging.LoadState getPrepend(); 141 method public androidx.paging.LoadState getRefresh(); 142 method public boolean hasError(); 143 method public boolean isIdle(); 144 property public final androidx.paging.LoadState append; 145 property public final boolean hasError; 146 property public final boolean isIdle; 147 property public final androidx.paging.LoadState prepend; 148 property public final androidx.paging.LoadState refresh; 149 } 150 151 public enum LoadType { 152 enum_constant public static final androidx.paging.LoadType APPEND; 153 enum_constant public static final androidx.paging.LoadType PREPEND; 154 enum_constant public static final androidx.paging.LoadType REFRESH; 155 } 156 157 @Deprecated public interface Logger { 158 method @Deprecated public boolean isLoggable(int level); 159 method @Deprecated public void log(int level, String message, optional Throwable? tr); 160 } 161 162 @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { 163 ctor @Deprecated public PageKeyedDataSource(); 164 method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); 165 method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); 166 method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback); 167 method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); 168 method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); 169 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); 170 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); 171 } 172 173 @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> { 174 ctor @Deprecated public PageKeyedDataSource.LoadCallback(); 175 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? adjacentPageKey); 176 } 177 178 @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> { 179 ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback(); 180 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey); 181 method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, Key? previousPageKey, Key? nextPageKey); 182 } 183 184 @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> { 185 ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled); 186 field @Deprecated public final boolean placeholdersEnabled; 187 field @Deprecated public final int requestedLoadSize; 188 } 189 190 @Deprecated public static class PageKeyedDataSource.LoadParams<Key> { 191 ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize); 192 field @Deprecated public final Key key; 193 field @Deprecated public final int requestedLoadSize; 194 } 195 196 @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> { 197 method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback); 198 method @Deprecated public final void addWeakCallback(java.util.List<? extends T>? previousSnapshot, androidx.paging.PagedList.Callback callback); 199 method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); 200 method @Deprecated public abstract void detach(); 201 method @Deprecated public T? get(int index); 202 method @Deprecated public final androidx.paging.PagedList.Config getConfig(); 203 method @Deprecated public final androidx.paging.DataSource<? extends java.lang.Object!,T> getDataSource(); 204 method @Deprecated public abstract Object? getLastKey(); 205 method @Deprecated public final int getLoadedCount(); 206 method @Deprecated public final int getPositionOffset(); 207 method @Deprecated public int getSize(); 208 method @Deprecated public abstract boolean isDetached(); 209 method @Deprecated public boolean isImmutable(); 210 method @Deprecated public final void loadAround(int index); 211 method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback); 212 method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); 213 method @Deprecated public void retry(); 214 method @Deprecated public final java.util.List<T> snapshot(); 215 property @Deprecated public final androidx.paging.PagedList.Config config; 216 property @Deprecated public final androidx.paging.DataSource<? extends java.lang.Object!,T> dataSource; 217 property @Deprecated public abstract boolean isDetached; 218 property @Deprecated public boolean isImmutable; 219 property @Deprecated public abstract Object? lastKey; 220 property @Deprecated public final int loadedCount; 221 property @Deprecated public final int positionOffset; 222 property @Deprecated public int size; 223 field @Deprecated public static final androidx.paging.PagedList.Companion Companion; 224 } 225 226 @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> { 227 ctor @Deprecated public PagedList.BoundaryCallback(); 228 method @Deprecated public void onItemAtEndLoaded(T itemAtEnd); 229 method @Deprecated public void onItemAtFrontLoaded(T itemAtFront); 230 method @Deprecated public void onZeroItemsLoaded(); 231 } 232 233 @Deprecated public static final class PagedList.Builder<Key, Value> { 234 ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config); 235 ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, int pageSize); 236 ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config); 237 ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize); 238 method @Deprecated public androidx.paging.PagedList<Value> build(); 239 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); 240 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); 241 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchDispatcher(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher); 242 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setFetchExecutor(java.util.concurrent.Executor fetchExecutor); 243 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey); 244 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyDispatcher(kotlinx.coroutines.CoroutineDispatcher notifyDispatcher); 245 method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setNotifyExecutor(java.util.concurrent.Executor notifyExecutor); 246 } 247 248 @Deprecated public abstract static class PagedList.Callback { 249 ctor @Deprecated public PagedList.Callback(); 250 method @Deprecated public abstract void onChanged(int position, int count); 251 method @Deprecated public abstract void onInserted(int position, int count); 252 method @Deprecated public abstract void onRemoved(int position, int count); 253 } 254 255 @Deprecated public static final class PagedList.Companion { 256 } 257 258 @Deprecated public static final class PagedList.Config { 259 field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff 260 field @Deprecated public final boolean enablePlaceholders; 261 field @Deprecated public final int initialLoadSizeHint; 262 field @Deprecated public final int maxSize; 263 field @Deprecated public final int pageSize; 264 field @Deprecated public final int prefetchDistance; 265 } 266 267 @Deprecated public static final class PagedList.Config.Builder { 268 ctor @Deprecated public PagedList.Config.Builder(); 269 method @Deprecated public androidx.paging.PagedList.Config build(); 270 method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders); 271 method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1L) int initialLoadSizeHint); 272 method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2L) int maxSize); 273 method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1L) int pageSize); 274 method @Deprecated public androidx.paging.PagedList.Config.Builder setPrefetchDistance(@IntRange(from=0L) int prefetchDistance); 275 } 276 277 public final class PagedListConfigKt { 278 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); 279 } 280 281 public final class PagedListKt { 282 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); 283 } 284 285 public final class Pager<Key, Value> { 286 ctor @SuppressCompatibility @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); 287 ctor public Pager(androidx.paging.PagingConfig config, optional Key? initialKey, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); 288 ctor public Pager(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); 289 method public kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> getFlow(); 290 property public final kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> flow; 291 } 292 293 public final class PagingConfig { 294 ctor public PagingConfig(int pageSize); 295 ctor public PagingConfig(int pageSize, optional @IntRange(from=0L) int prefetchDistance); 296 ctor public PagingConfig(int pageSize, optional @IntRange(from=0L) int prefetchDistance, optional boolean enablePlaceholders); 297 ctor public PagingConfig(int pageSize, optional @IntRange(from=0L) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1L) int initialLoadSize); 298 ctor public PagingConfig(int pageSize, optional @IntRange(from=0L) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1L) int initialLoadSize, optional @IntRange(from=2L) int maxSize); 299 ctor public PagingConfig(int pageSize, optional @IntRange(from=0L) int prefetchDistance, optional boolean enablePlaceholders, optional @IntRange(from=1L) int initialLoadSize, optional @IntRange(from=2L) int maxSize, optional int jumpThreshold); 300 field public static final androidx.paging.PagingConfig.Companion Companion; 301 field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff 302 field public final boolean enablePlaceholders; 303 field public final int initialLoadSize; 304 field public final int jumpThreshold; 305 field public final int maxSize; 306 field public final int pageSize; 307 field public final int prefetchDistance; 308 } 309 310 public static final class PagingConfig.Companion { 311 } 312 313 public final class PagingData<T> { 314 method public static <T> androidx.paging.PagingData<T> empty(); 315 method public static <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates); 316 method public static <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates); 317 method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data); 318 method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates); 319 method public static <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates); 320 field public static final androidx.paging.PagingData.Companion Companion; 321 } 322 323 public static final class PagingData.Companion { 324 method public <T> androidx.paging.PagingData<T> empty(); 325 method public <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates); 326 method public <T> androidx.paging.PagingData<T> empty(androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates); 327 method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data); 328 method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates); 329 method public <T> androidx.paging.PagingData<T> from(java.util.List<? extends T> data, androidx.paging.LoadStates sourceLoadStates, optional androidx.paging.LoadStates? mediatorLoadStates); 330 } 331 332 public abstract sealed class PagingDataEvent<T> { 333 } 334 335 public static final class PagingDataEvent.Append<T> extends androidx.paging.PagingDataEvent<T> { 336 method public java.util.List<T> getInserted(); 337 method public int getNewPlaceholdersAfter(); 338 method public int getOldPlaceholdersAfter(); 339 method public int getStartIndex(); 340 property public final java.util.List<T> inserted; 341 property public final int newPlaceholdersAfter; 342 property public final int oldPlaceholdersAfter; 343 property public final int startIndex; 344 } 345 346 public static final class PagingDataEvent.DropAppend<T> extends androidx.paging.PagingDataEvent<T> { 347 method public int getDropCount(); 348 method public int getNewPlaceholdersAfter(); 349 method public int getOldPlaceholdersAfter(); 350 method public int getStartIndex(); 351 property public final int dropCount; 352 property public final int newPlaceholdersAfter; 353 property public final int oldPlaceholdersAfter; 354 property public final int startIndex; 355 } 356 357 public static final class PagingDataEvent.DropPrepend<T> extends androidx.paging.PagingDataEvent<T> { 358 method public int getDropCount(); 359 method public int getNewPlaceholdersBefore(); 360 method public int getOldPlaceholdersBefore(); 361 property public final int dropCount; 362 property public final int newPlaceholdersBefore; 363 property public final int oldPlaceholdersBefore; 364 } 365 366 public static final class PagingDataEvent.Prepend<T> extends androidx.paging.PagingDataEvent<T> { 367 method public java.util.List<T> getInserted(); 368 method public int getNewPlaceholdersBefore(); 369 method public int getOldPlaceholdersBefore(); 370 property public final java.util.List<T> inserted; 371 property public final int newPlaceholdersBefore; 372 property public final int oldPlaceholdersBefore; 373 } 374 375 public static final class PagingDataEvent.Refresh<T> extends androidx.paging.PagingDataEvent<T> { 376 method public androidx.paging.PlaceholderPaddedList<T> getNewList(); 377 method public androidx.paging.PlaceholderPaddedList<T> getPreviousList(); 378 property public final androidx.paging.PlaceholderPaddedList<T> newList; 379 property public final androidx.paging.PlaceholderPaddedList<T> previousList; 380 } 381 382 public abstract class PagingDataPresenter<T> { 383 ctor public PagingDataPresenter(optional kotlin.coroutines.CoroutineContext mainContext, optional androidx.paging.PagingData<T>? cachedPagingData); 384 method public final void addLoadStateListener(kotlin.jvm.functions.Function1<androidx.paging.CombinedLoadStates,kotlin.Unit> listener); 385 method public final void addOnPagesUpdatedListener(kotlin.jvm.functions.Function0<kotlin.Unit> listener); 386 method public final suspend Object? collectFrom(androidx.paging.PagingData<T> pagingData, kotlin.coroutines.Continuation<kotlin.Unit>); 387 method @MainThread public final operator T? get(@IntRange(from=0L) int index); 388 method public final kotlinx.coroutines.flow.StateFlow<androidx.paging.CombinedLoadStates?> getLoadStateFlow(); 389 method public final kotlinx.coroutines.flow.Flow<kotlin.Unit> getOnPagesUpdatedFlow(); 390 method public final int getSize(); 391 method @MainThread public final T? peek(@IntRange(from=0L) int index); 392 method public abstract suspend Object? presentPagingDataEvent(androidx.paging.PagingDataEvent<T> event, kotlin.coroutines.Continuation<kotlin.Unit>); 393 method public final void refresh(); 394 method public final void removeLoadStateListener(kotlin.jvm.functions.Function1<androidx.paging.CombinedLoadStates,kotlin.Unit> listener); 395 method public final void removeOnPagesUpdatedListener(kotlin.jvm.functions.Function0<kotlin.Unit> listener); 396 method public final void retry(); 397 method public final androidx.paging.ItemSnapshotList<T> snapshot(); 398 property public final kotlinx.coroutines.flow.StateFlow<androidx.paging.CombinedLoadStates?> loadStateFlow; 399 property public final kotlinx.coroutines.flow.Flow<kotlin.Unit> onPagesUpdatedFlow; 400 property public final int size; 401 } 402 403 public final class PagingDataTransforms { 404 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); 405 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>,? extends java.lang.Object?> predicate); 406 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); 407 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>>,? extends java.lang.Object?> transform); 408 method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item); 409 method @CheckResult public static <T> androidx.paging.PagingData<T> insertFooterItem(androidx.paging.PagingData<T>, T item); 410 method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, optional androidx.paging.TerminalSeparatorType terminalSeparatorType, T item); 411 method @CheckResult public static <T> androidx.paging.PagingData<T> insertHeaderItem(androidx.paging.PagingData<T>, T item); 412 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); 413 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?>,? extends java.lang.Object?> generator); 414 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); 415 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); 416 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>,? extends java.lang.Object?> transform); 417 } 418 419 public abstract class PagingSource<Key, Value> { 420 ctor public PagingSource(); 421 method public final boolean getInvalid(); 422 method public boolean getJumpingSupported(); 423 method public boolean getKeyReuseSupported(); 424 method public abstract Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state); 425 method public final void invalidate(); 426 method public abstract suspend Object? load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>>); 427 method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); 428 method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); 429 property public final boolean invalid; 430 property public boolean jumpingSupported; 431 property public boolean keyReuseSupported; 432 } 433 434 public abstract static sealed class PagingSource.LoadParams<Key> { 435 method public abstract Key? getKey(); 436 method public final int getLoadSize(); 437 method public final boolean getPlaceholdersEnabled(); 438 property public abstract Key? key; 439 property public final int loadSize; 440 property public final boolean placeholdersEnabled; 441 } 442 443 public static final class PagingSource.LoadParams.Append<Key> extends androidx.paging.PagingSource.LoadParams<Key> { 444 ctor public PagingSource.LoadParams.Append(Key key, int loadSize, boolean placeholdersEnabled); 445 method public Key getKey(); 446 property public Key key; 447 } 448 449 public static final class PagingSource.LoadParams.Prepend<Key> extends androidx.paging.PagingSource.LoadParams<Key> { 450 ctor public PagingSource.LoadParams.Prepend(Key key, int loadSize, boolean placeholdersEnabled); 451 method public Key getKey(); 452 property public Key key; 453 } 454 455 public static final class PagingSource.LoadParams.Refresh<Key> extends androidx.paging.PagingSource.LoadParams<Key> { 456 ctor public PagingSource.LoadParams.Refresh(Key? key, int loadSize, boolean placeholdersEnabled); 457 method public Key? getKey(); 458 property public Key? key; 459 } 460 461 public abstract static sealed class PagingSource.LoadResult<Key, Value> { 462 } 463 464 public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> { 465 ctor public PagingSource.LoadResult.Error(Throwable throwable); 466 method public Throwable component1(); 467 method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable); 468 method public Throwable getThrowable(); 469 property public final Throwable throwable; 470 } 471 472 public static final class PagingSource.LoadResult.Invalid<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> { 473 ctor public PagingSource.LoadResult.Invalid(); 474 } 475 476 public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> implements java.lang.Iterable<Value> kotlin.jvm.internal.markers.KMappedMarker { 477 ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey); 478 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); 479 method public java.util.List<Value> component1(); 480 method public Key? component2(); 481 method public Key? component3(); 482 method public int component4(); 483 method public int component5(); 484 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); 485 method public java.util.List<Value> getData(); 486 method public int getItemsAfter(); 487 method public int getItemsBefore(); 488 method public Key? getNextKey(); 489 method public Key? getPrevKey(); 490 method public java.util.Iterator<Value> iterator(); 491 property public final java.util.List<Value> data; 492 property public final int itemsAfter; 493 property public final int itemsBefore; 494 property public final Key? nextKey; 495 property public final Key? prevKey; 496 field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000 497 field public static final androidx.paging.PagingSource.LoadResult.Page.Companion Companion; 498 } 499 500 public static final class PagingSource.LoadResult.Page.Companion { 501 } 502 503 public fun interface PagingSourceFactory<Key, Value> extends kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> { 504 method public operator androidx.paging.PagingSource<Key,Value> invoke(); 505 } 506 507 public final class PagingState<Key, Value> { 508 ctor public PagingState(java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages, Integer? anchorPosition, androidx.paging.PagingConfig config, @IntRange(from=0L) int leadingPlaceholderCount); 509 method public Value? closestItemToPosition(int anchorPosition); 510 method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition); 511 method public Value? firstItemOrNull(); 512 method public Integer? getAnchorPosition(); 513 method public androidx.paging.PagingConfig getConfig(); 514 method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages(); 515 method public boolean isEmpty(); 516 method public Value? lastItemOrNull(); 517 property public final Integer? anchorPosition; 518 property public final androidx.paging.PagingConfig config; 519 property public final java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> pages; 520 } 521 522 public interface PlaceholderPaddedList<T> { 523 method public int getDataCount(); 524 method public T getItem(int index); 525 method public int getPlaceholdersAfter(); 526 method public int getPlaceholdersBefore(); 527 method public int getSize(); 528 property public abstract int dataCount; 529 property public abstract int placeholdersAfter; 530 property public abstract int placeholdersBefore; 531 property public abstract int size; 532 } 533 534 @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> { 535 ctor @Deprecated public PositionalDataSource(); 536 method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount); 537 method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount); 538 method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback); 539 method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback); 540 method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function); 541 method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function); 542 method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function); 543 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); 544 field @Deprecated public static final androidx.paging.PositionalDataSource.Companion Companion; 545 } 546 547 @Deprecated public static final class PositionalDataSource.Companion { 548 method @Deprecated public int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount); 549 method @Deprecated public int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount); 550 } 551 552 @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> { 553 ctor @Deprecated public PositionalDataSource.LoadInitialCallback(); 554 method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position); 555 method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount); 556 } 557 558 @Deprecated public static class PositionalDataSource.LoadInitialParams { 559 ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled); 560 field @Deprecated public final int pageSize; 561 field @Deprecated public final boolean placeholdersEnabled; 562 field @Deprecated public final int requestedLoadSize; 563 field @Deprecated public final int requestedStartPosition; 564 } 565 566 @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> { 567 ctor @Deprecated public PositionalDataSource.LoadRangeCallback(); 568 method @Deprecated public abstract void onResult(java.util.List<? extends T> data); 569 } 570 571 @Deprecated public static class PositionalDataSource.LoadRangeParams { 572 ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize); 573 field @Deprecated public final int loadSize; 574 field @Deprecated public final int startPosition; 575 } 576 577 @SuppressCompatibility @androidx.paging.ExperimentalPagingApi public abstract class RemoteMediator<Key, Value> { 578 ctor public RemoteMediator(); 579 method public suspend Object? initialize(kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.InitializeAction>); 580 method public abstract suspend Object? load(androidx.paging.LoadType loadType, androidx.paging.PagingState<Key,Value> state, kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.MediatorResult>); 581 } 582 583 public enum RemoteMediator.InitializeAction { 584 enum_constant public static final androidx.paging.RemoteMediator.InitializeAction LAUNCH_INITIAL_REFRESH; 585 enum_constant public static final androidx.paging.RemoteMediator.InitializeAction SKIP_INITIAL_REFRESH; 586 } 587 588 public abstract static sealed class RemoteMediator.MediatorResult { 589 } 590 591 public static final class RemoteMediator.MediatorResult.Error extends androidx.paging.RemoteMediator.MediatorResult { 592 ctor public RemoteMediator.MediatorResult.Error(Throwable throwable); 593 method public Throwable getThrowable(); 594 property public final Throwable throwable; 595 } 596 597 public static final class RemoteMediator.MediatorResult.Success extends androidx.paging.RemoteMediator.MediatorResult { 598 ctor public RemoteMediator.MediatorResult.Success(boolean endOfPaginationReached); 599 method public boolean getEndOfPaginationReached(); 600 property public final boolean endOfPaginationReached; 601 } 602 603 public enum TerminalSeparatorType { 604 enum_constant public static final androidx.paging.TerminalSeparatorType FULLY_COMPLETE; 605 enum_constant public static final androidx.paging.TerminalSeparatorType SOURCE_COMPLETE; 606 } 607 608} 609 610