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