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