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