Jeff Gaston | 5d65a6a | 2019-01-23 13:44:15 -0500 | [diff] [blame] | 1 | // Signature format: 3.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 | |
Dustin Lam | bfb4038 | 2020-01-14 15:17:18 -0800 | [diff] [blame] | 8 | public final class CancelableChannelFlowKt { |
| 9 | } |
| 10 | |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 11 | public abstract class DataSource<Key, Value> { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 12 | method @AnyThread public void addInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); |
Dustin Lam | 7b116f5 | 2019-06-12 13:51:31 -0700 | [diff] [blame] | 13 | method @AnyThread public final void addInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 14 | method @AnyThread public void invalidate(); |
| 15 | method @WorkerThread public boolean isInvalid(); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 16 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 17 | method 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] | 18 | method public <ToValue> androidx.paging.DataSource<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 19 | method 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] | 20 | method @AnyThread public void removeInvalidatedCallback(androidx.paging.DataSource.InvalidatedCallback onInvalidatedCallback); |
Dustin Lam | 7b116f5 | 2019-06-12 13:51:31 -0700 | [diff] [blame] | 21 | method @AnyThread public final void removeInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 22 | property @WorkerThread public boolean isInvalid; |
| 23 | } |
| 24 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 25 | public abstract static class DataSource.Factory<Key, Value> { |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 26 | ctor public DataSource.Factory(); |
Dustin Lam | caee0ab | 2020-01-10 15:59:37 -0800 | [diff] [blame] | 27 | method public final kotlin.jvm.functions.Function0<androidx.paging.PagingSource<Key,Value>> asPagingSourceFactory(kotlinx.coroutines.CoroutineDispatcher fetchDispatcher = Dispatchers.IO); |
| 28 | 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] | 29 | method public abstract androidx.paging.DataSource<Key,Value> create(); |
| 30 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 31 | method 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] | 32 | method public <ToValue> androidx.paging.DataSource.Factory<Key,ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>,java.util.List<ToValue>> function); |
Dustin Lam | c7011f2 | 2019-06-18 16:02:48 -0700 | [diff] [blame] | 33 | method 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] | 34 | } |
| 35 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 36 | public static interface DataSource.InvalidatedCallback { |
| 37 | method @AnyThread public void onInvalidated(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 38 | } |
| 39 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 40 | @Deprecated public abstract class ItemKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
| 41 | ctor @Deprecated public ItemKeyedDataSource(); |
| 42 | method @Deprecated public abstract Key getKey(Value item); |
| 43 | method @Deprecated public abstract void loadAfter(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
| 44 | method @Deprecated public abstract void loadBefore(androidx.paging.ItemKeyedDataSource.LoadParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadCallback<Value> callback); |
| 45 | method @Deprecated public abstract void loadInitial(androidx.paging.ItemKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.ItemKeyedDataSource.LoadInitialCallback<Value> callback); |
| 46 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 47 | method @Deprecated public final <ToValue> androidx.paging.ItemKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
| 48 | 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); |
| 49 | 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] | 50 | } |
| 51 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 52 | @Deprecated public abstract static class ItemKeyedDataSource.LoadCallback<Value> { |
| 53 | ctor @Deprecated public ItemKeyedDataSource.LoadCallback(); |
| 54 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 55 | } |
| 56 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 57 | @Deprecated public abstract static class ItemKeyedDataSource.LoadInitialCallback<Value> extends androidx.paging.ItemKeyedDataSource.LoadCallback<Value> { |
| 58 | ctor @Deprecated public ItemKeyedDataSource.LoadInitialCallback(); |
| 59 | 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] | 60 | } |
| 61 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 62 | @Deprecated public static class ItemKeyedDataSource.LoadInitialParams<Key> { |
| 63 | ctor @Deprecated public ItemKeyedDataSource.LoadInitialParams(Key? requestedInitialKey, int requestedLoadSize, boolean placeholdersEnabled); |
| 64 | field @Deprecated public final boolean placeholdersEnabled; |
| 65 | field @Deprecated public final Key? requestedInitialKey; |
| 66 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 67 | } |
| 68 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 69 | @Deprecated public static class ItemKeyedDataSource.LoadParams<Key> { |
| 70 | ctor @Deprecated public ItemKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
| 71 | field @Deprecated public final Key key; |
| 72 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 73 | } |
| 74 | |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 75 | public abstract sealed class LoadState { |
| 76 | } |
| 77 | |
| 78 | public static final class LoadState.Done extends androidx.paging.LoadState { |
| 79 | field public static final androidx.paging.LoadState.Done! INSTANCE; |
| 80 | } |
| 81 | |
| 82 | public static final class LoadState.Error extends androidx.paging.LoadState { |
Chris Craik | bda30df | 2019-09-06 15:14:28 -0700 | [diff] [blame] | 83 | ctor public LoadState.Error(Throwable error); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 84 | method public Throwable component1(); |
Chris Craik | bda30df | 2019-09-06 15:14:28 -0700 | [diff] [blame] | 85 | method public androidx.paging.LoadState.Error copy(Throwable error); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 86 | method public Throwable getError(); |
Dustin Lam | c6431e4 | 2019-08-28 18:40:11 -0700 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | public static final class LoadState.Idle extends androidx.paging.LoadState { |
| 90 | field public static final androidx.paging.LoadState.Idle! INSTANCE; |
| 91 | } |
| 92 | |
| 93 | public static final class LoadState.Loading extends androidx.paging.LoadState { |
| 94 | field public static final androidx.paging.LoadState.Loading! INSTANCE; |
| 95 | } |
| 96 | |
| 97 | public enum LoadType { |
| 98 | enum_constant public static final androidx.paging.LoadType END; |
| 99 | enum_constant public static final androidx.paging.LoadType REFRESH; |
| 100 | enum_constant public static final androidx.paging.LoadType START; |
| 101 | } |
| 102 | |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 103 | public final class PageEventKt { |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 104 | } |
| 105 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 106 | @Deprecated public abstract class PageKeyedDataSource<Key, Value> extends androidx.paging.DataSource<Key,Value> { |
| 107 | ctor @Deprecated public PageKeyedDataSource(); |
| 108 | method @Deprecated public abstract void loadAfter(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
| 109 | method @Deprecated public abstract void loadBefore(androidx.paging.PageKeyedDataSource.LoadParams<Key> params, androidx.paging.PageKeyedDataSource.LoadCallback<Key,Value> callback); |
| 110 | method @Deprecated public abstract void loadInitial(androidx.paging.PageKeyedDataSource.LoadInitialParams<Key> params, androidx.paging.PageKeyedDataSource.LoadInitialCallback<Key,Value> callback); |
| 111 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(androidx.arch.core.util.Function<Value,ToValue> function); |
| 112 | method @Deprecated public final <ToValue> androidx.paging.PageKeyedDataSource<Key,ToValue> map(kotlin.jvm.functions.Function1<? super Value,? extends ToValue> function); |
| 113 | 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); |
| 114 | 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] | 115 | } |
| 116 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 117 | @Deprecated public abstract static class PageKeyedDataSource.LoadCallback<Key, Value> { |
| 118 | ctor @Deprecated public PageKeyedDataSource.LoadCallback(); |
| 119 | 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] | 120 | } |
| 121 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 122 | @Deprecated public abstract static class PageKeyedDataSource.LoadInitialCallback<Key, Value> { |
| 123 | ctor @Deprecated public PageKeyedDataSource.LoadInitialCallback(); |
| 124 | method @Deprecated public abstract void onResult(java.util.List<? extends Value> data, int position, int totalCount, Key? previousPageKey, Key? nextPageKey); |
| 125 | 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] | 126 | } |
| 127 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 128 | @Deprecated public static class PageKeyedDataSource.LoadInitialParams<Key> { |
| 129 | ctor @Deprecated public PageKeyedDataSource.LoadInitialParams(int requestedLoadSize, boolean placeholdersEnabled); |
| 130 | field @Deprecated public final boolean placeholdersEnabled; |
| 131 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 132 | } |
| 133 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 134 | @Deprecated public static class PageKeyedDataSource.LoadParams<Key> { |
| 135 | ctor @Deprecated public PageKeyedDataSource.LoadParams(Key key, int requestedLoadSize); |
| 136 | field @Deprecated public final Key key; |
| 137 | field @Deprecated public final int requestedLoadSize; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 138 | } |
| 139 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 140 | @Deprecated public abstract class PagedList<T> extends java.util.AbstractList<T> { |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 141 | 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] | 142 | method @Deprecated public final void addWeakCallback(androidx.paging.PagedList.Callback callback); |
| 143 | method @Deprecated public final void addWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| 144 | method @Deprecated public abstract void detach(); |
| 145 | method @Deprecated public T? get(int index); |
| 146 | method @Deprecated public final androidx.paging.PagedList.Config getConfig(); |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 147 | method @Deprecated public final androidx.paging.DataSource<?,T> getDataSource(); |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 148 | method @Deprecated public abstract Object? getLastKey(); |
| 149 | method @Deprecated public final int getLoadedCount(); |
| 150 | method @Deprecated public final int getPositionOffset(); |
| 151 | method @Deprecated public int getSize(); |
| 152 | method @Deprecated public abstract boolean isDetached(); |
| 153 | method @Deprecated public boolean isImmutable(); |
| 154 | method @Deprecated public final void loadAround(int index); |
| 155 | method @Deprecated public final void removeWeakCallback(androidx.paging.PagedList.Callback callback); |
| 156 | method @Deprecated public final void removeWeakLoadStateListener(kotlin.jvm.functions.Function2<? super androidx.paging.LoadType,? super androidx.paging.LoadState,kotlin.Unit> listener); |
| 157 | method @Deprecated public void retry(); |
| 158 | method @Deprecated public final java.util.List<T> snapshot(); |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 159 | property @Deprecated public final androidx.paging.DataSource<?,T> dataSource; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 160 | property public abstract boolean isDetached; |
| 161 | property public boolean isImmutable; |
| 162 | property public abstract Object? lastKey; |
Chris Craik | c5178fb | 2019-08-30 09:58:53 -0700 | [diff] [blame] | 163 | property public final int loadedCount; |
| 164 | property public final int positionOffset; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 165 | property public int size; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 166 | } |
| 167 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 168 | @Deprecated @MainThread public abstract static class PagedList.BoundaryCallback<T> { |
| 169 | ctor @Deprecated public PagedList.BoundaryCallback(); |
| 170 | method @Deprecated public void onItemAtEndLoaded(T itemAtEnd); |
| 171 | method @Deprecated public void onItemAtFrontLoaded(T itemAtFront); |
| 172 | method @Deprecated public void onZeroItemsLoaded(); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 173 | } |
| 174 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 175 | @Deprecated public static final class PagedList.Builder<Key, Value> { |
Dustin Lam | aa0515c | 2019-07-02 19:35:29 -0700 | [diff] [blame] | 176 | ctor @Deprecated public PagedList.Builder(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config); |
| 177 | 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] | 178 | ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, androidx.paging.PagedList.Config config); |
| 179 | ctor @Deprecated public PagedList.Builder(androidx.paging.PagingSource<Key,Value> pagingSource, androidx.paging.PagingSource.LoadResult.Page<Key,Value> initialPage, int pageSize); |
| 180 | method @Deprecated public androidx.paging.PagedList<Value> build(); |
| 181 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setBoundaryCallback(androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback); |
| 182 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setCoroutineScope(kotlinx.coroutines.CoroutineScope coroutineScope); |
| 183 | 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] | 184 | 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] | 185 | method @Deprecated public androidx.paging.PagedList.Builder<Key,Value> setInitialKey(Key? initialKey); |
| 186 | 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] | 187 | 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] | 188 | } |
| 189 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 190 | @Deprecated public abstract static class PagedList.Callback { |
| 191 | ctor @Deprecated public PagedList.Callback(); |
| 192 | method @Deprecated public abstract void onChanged(int position, int count); |
| 193 | method @Deprecated public abstract void onInserted(int position, int count); |
| 194 | method @Deprecated public abstract void onRemoved(int position, int count); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 195 | } |
| 196 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 197 | @Deprecated public static final class PagedList.Config { |
| 198 | field @Deprecated public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 199 | field @Deprecated public final boolean enablePlaceholders; |
| 200 | field @Deprecated public final int initialLoadSizeHint; |
| 201 | field @Deprecated public final int maxSize; |
| 202 | field @Deprecated public final int pageSize; |
| 203 | field @Deprecated public final int prefetchDistance; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 204 | } |
| 205 | |
Dustin Lam | 74ee017 | 2020-02-10 17:17:19 -0800 | [diff] [blame] | 206 | @Deprecated public static final class PagedList.Config.Builder { |
| 207 | ctor @Deprecated public PagedList.Config.Builder(); |
| 208 | method @Deprecated public androidx.paging.PagedList.Config build(); |
| 209 | method @Deprecated public androidx.paging.PagedList.Config.Builder setEnablePlaceholders(boolean enablePlaceholders); |
| 210 | method @Deprecated public androidx.paging.PagedList.Config.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint); |
| 211 | method @Deprecated public androidx.paging.PagedList.Config.Builder setMaxSize(@IntRange(from=2) int maxSize); |
| 212 | method @Deprecated public androidx.paging.PagedList.Config.Builder setPageSize(@IntRange(from=1) int pageSize); |
| 213 | 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] | 214 | } |
| 215 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 216 | public final class PagedListConfigKt { |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 217 | method public static androidx.paging.PagedList.Config Config(int pageSize, int prefetchDistance = pageSize, boolean enablePlaceholders = true, int initialLoadSizeHint = pageSize * androidx.paging.PagedList.Config.Builder.DEFAULT_INITIAL_PAGE_MULTIPLIER, int maxSize = 2147483647); |
| 218 | } |
| 219 | |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 220 | public final class PagedListKt { |
Dustin Lam | 5cab6ee | 2019-07-17 09:49:04 -0700 | [diff] [blame] | 221 | method @Deprecated public static <Key, Value> androidx.paging.PagedList<Value> PagedList(androidx.paging.DataSource<Key,Value> dataSource, androidx.paging.PagedList.Config config, java.util.concurrent.Executor notifyExecutor, java.util.concurrent.Executor fetchExecutor, androidx.paging.PagedList.BoundaryCallback<Value>? boundaryCallback = null, Key? initialKey = null); |
Dustin Lam | 26ca1a7 | 2019-05-28 17:42:51 -0700 | [diff] [blame] | 222 | } |
| 223 | |
Chris Craik | 251f413 | 2020-01-03 09:45:19 -0800 | [diff] [blame] | 224 | public final class PagingConfig { |
| 225 | ctor public PagingConfig(int pageSize, int prefetchDistance, boolean enablePlaceholders, int initialLoadSize, int maxSize); |
| 226 | field public static final androidx.paging.PagingConfig.Companion! Companion; |
| 227 | field public static final int MAX_SIZE_UNBOUNDED = 2147483647; // 0x7fffffff |
| 228 | field public final boolean enablePlaceholders; |
| 229 | field public final int initialLoadSize; |
| 230 | field public final int maxSize; |
| 231 | field public final int pageSize; |
| 232 | field public final int prefetchDistance; |
| 233 | } |
| 234 | |
| 235 | public static final class PagingConfig.Builder { |
| 236 | ctor public PagingConfig.Builder(int pageSize); |
| 237 | method public androidx.paging.PagingConfig build(); |
| 238 | method public androidx.paging.PagingConfig.Builder setEnablePlaceholders(boolean enablePlaceholders); |
| 239 | method public androidx.paging.PagingConfig.Builder setInitialLoadSizeHint(@IntRange(from=1) int initialLoadSizeHint); |
| 240 | method public androidx.paging.PagingConfig.Builder setMaxSize(@IntRange(from=2) int maxSize); |
| 241 | method public androidx.paging.PagingConfig.Builder setPrefetchDistance(@IntRange(from=0) int prefetchDistance); |
| 242 | } |
| 243 | |
| 244 | public static final class PagingConfig.Companion { |
| 245 | } |
| 246 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 247 | public final class PagingData<T> { |
Dustin Lam | b82a27f | 2020-02-04 17:09:34 -0800 | [diff] [blame] | 248 | method public static <T> androidx.paging.PagingData<T> empty(); |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 249 | method @CheckResult public androidx.paging.PagingData<T> filter(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> predicate); |
| 250 | method @CheckResult public <R> androidx.paging.PagingData<R> flatMap(kotlin.jvm.functions.Function1<? super T,? extends java.lang.Iterable<? extends R>> transform); |
Chris Craik | 5b5ca9c | 2020-03-13 13:39:12 -0700 | [diff] [blame] | 251 | method @CheckResult public androidx.paging.PagingData<T> insertFooterItem(T item); |
| 252 | method @CheckResult public androidx.paging.PagingData<T> insertHeaderItem(T item); |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 253 | method @CheckResult public static <T extends R, R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T> pagingData, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
| 254 | method @CheckResult public <R> androidx.paging.PagingData<R> map(kotlin.jvm.functions.Function1<? super T,? extends R> transform); |
Dustin Lam | b82a27f | 2020-02-04 17:09:34 -0800 | [diff] [blame] | 255 | field public static final androidx.paging.PagingData.Companion! Companion; |
| 256 | } |
| 257 | |
| 258 | public static final class PagingData.Companion { |
| 259 | method public <T> androidx.paging.PagingData<T> empty(); |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 260 | method @CheckResult public <T extends R, R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T> pagingData, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 261 | } |
| 262 | |
| 263 | public final class PagingDataFlow { |
Dustin Lam | 4f1cfee | 2020-03-09 09:49:22 -0700 | [diff] [blame] | 264 | method public static <Key, Value> kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> create(androidx.paging.PagingConfig config, Key? initialKey = null, androidx.paging.RemoteMediator<Key,Value>? remoteMediator = null, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 265 | method public static <Key, Value> kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> create(androidx.paging.PagingConfig config, Key? initialKey = null, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 266 | method public static <Key, Value> kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<Value>> create(androidx.paging.PagingConfig config, kotlin.jvm.functions.Function0<? extends androidx.paging.PagingSource<Key,Value>> pagingSourceFactory); |
| 267 | } |
| 268 | |
Chris Craik | 7621909 | 2020-03-09 11:30:01 -0700 | [diff] [blame] | 269 | public final class PagingDataKt { |
Chris Craik | 1933a6a | 2020-03-11 12:11:30 -0700 | [diff] [blame] | 270 | method @CheckResult public static <T extends R, R> androidx.paging.PagingData<R> insertSeparators(androidx.paging.PagingData<T>, kotlin.jvm.functions.Function2<? super T,? super T,? extends R> generator); |
Chris Craik | 7621909 | 2020-03-09 11:30:01 -0700 | [diff] [blame] | 271 | } |
| 272 | |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 273 | public abstract class PagingSource<Key, Value> { |
| 274 | ctor public PagingSource(); |
| 275 | method public final boolean getInvalid(); |
Dustin Lam | b034602 | 2020-01-17 15:08:13 -0800 | [diff] [blame] | 276 | method public Key? getRefreshKey(androidx.paging.PagingState<Key,Value> state); |
Dustin Lam | 4b8e0d0 | 2020-01-09 15:55:17 -0800 | [diff] [blame] | 277 | method public void invalidate(); |
| 278 | method public abstract suspend Object load(androidx.paging.PagingSource.LoadParams<Key> params, kotlin.coroutines.Continuation<? super androidx.paging.PagingSource.LoadResult<Key,Value>> p); |
| 279 | method public final void registerInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 280 | method public final void unregisterInvalidatedCallback(kotlin.jvm.functions.Function0<kotlin.Unit> onInvalidatedCallback); |
| 281 | property public final boolean invalid; |
| 282 | } |
| 283 | |
| 284 | public static final class PagingSource.LoadParams<Key> { |
| 285 | ctor public PagingSource.LoadParams(androidx.paging.LoadType loadType, Key? key, int loadSize, boolean placeholdersEnabled, int pageSize); |
| 286 | method public androidx.paging.LoadType component1(); |
| 287 | method public Key? component2(); |
| 288 | method public int component3(); |
| 289 | method public boolean component4(); |
| 290 | method public int component5(); |
| 291 | method public androidx.paging.PagingSource.LoadParams<Key> copy(androidx.paging.LoadType loadType, Key? key, int loadSize, boolean placeholdersEnabled, int pageSize); |
| 292 | method public Key? getKey(); |
| 293 | method public int getLoadSize(); |
| 294 | method public androidx.paging.LoadType getLoadType(); |
| 295 | method public int getPageSize(); |
| 296 | method public boolean getPlaceholdersEnabled(); |
| 297 | } |
| 298 | |
| 299 | public abstract static sealed class PagingSource.LoadResult<Key, Value> { |
| 300 | } |
| 301 | |
| 302 | public static final class PagingSource.LoadResult.Error<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> { |
| 303 | ctor public PagingSource.LoadResult.Error(Throwable throwable); |
| 304 | method public Throwable component1(); |
| 305 | method public androidx.paging.PagingSource.LoadResult.Error<Key,Value> copy(Throwable throwable); |
| 306 | method public Throwable getThrowable(); |
| 307 | } |
| 308 | |
| 309 | public static final class PagingSource.LoadResult.Page<Key, Value> extends androidx.paging.PagingSource.LoadResult<Key,Value> { |
| 310 | ctor public PagingSource.LoadResult.Page(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, @IntRange(from=null) int itemsBefore, @IntRange(from=null) int itemsAfter); |
| 311 | method public java.util.List<Value> component1(); |
| 312 | method public Key? component2(); |
| 313 | method public Key? component3(); |
| 314 | method public int component4(); |
| 315 | method public int component5(); |
| 316 | method public androidx.paging.PagingSource.LoadResult.Page<Key,Value> copy(java.util.List<? extends Value> data, Key? prevKey, Key? nextKey, int itemsBefore, int itemsAfter); |
| 317 | method public java.util.List<Value> getData(); |
| 318 | method public int getItemsAfter(); |
| 319 | method public int getItemsBefore(); |
| 320 | method public Key? getNextKey(); |
| 321 | method public Key? getPrevKey(); |
| 322 | field public static final int COUNT_UNDEFINED = -2147483648; // 0x80000000 |
| 323 | field public static final androidx.paging.PagingSource.LoadResult.Page.Companion! Companion; |
| 324 | } |
| 325 | |
| 326 | public static final class PagingSource.LoadResult.Page.Companion { |
| 327 | } |
| 328 | |
| 329 | public final class PagingSourceKt { |
| 330 | } |
| 331 | |
Dustin Lam | b034602 | 2020-01-17 15:08:13 -0800 | [diff] [blame] | 332 | public final class PagingState<Key, Value> { |
Dustin Lam | 779cddb | 2020-03-26 12:28:43 -0700 | [diff] [blame] | 333 | method public Value? closestItemToPosition(int anchorPosition); |
| 334 | method public androidx.paging.PagingSource.LoadResult.Page<Key,Value>? closestPageToPosition(int anchorPosition); |
| 335 | method public Integer? getAnchorPosition(); |
Dustin Lam | 1249ec0 | 2020-03-25 11:25:34 -0700 | [diff] [blame] | 336 | method public androidx.paging.PagingConfig getConfig(); |
Dustin Lam | b034602 | 2020-01-17 15:08:13 -0800 | [diff] [blame] | 337 | method public java.util.List<androidx.paging.PagingSource.LoadResult.Page<Key,Value>> getPages(); |
| 338 | } |
| 339 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 340 | @Deprecated public abstract class PositionalDataSource<T> extends androidx.paging.DataSource<java.lang.Integer,T> { |
| 341 | ctor @Deprecated public PositionalDataSource(); |
| 342 | method @Deprecated public static final int computeInitialLoadPosition(androidx.paging.PositionalDataSource.LoadInitialParams params, int totalCount); |
| 343 | method @Deprecated public static final int computeInitialLoadSize(androidx.paging.PositionalDataSource.LoadInitialParams params, int initialLoadPosition, int totalCount); |
| 344 | method @Deprecated @WorkerThread public abstract void loadInitial(androidx.paging.PositionalDataSource.LoadInitialParams params, androidx.paging.PositionalDataSource.LoadInitialCallback<T> callback); |
| 345 | method @Deprecated @WorkerThread public abstract void loadRange(androidx.paging.PositionalDataSource.LoadRangeParams params, androidx.paging.PositionalDataSource.LoadRangeCallback<T> callback); |
| 346 | method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(androidx.arch.core.util.Function<T,V> function); |
| 347 | method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> map(kotlin.jvm.functions.Function1<? super T,? extends V> function); |
| 348 | method @Deprecated public final <V> androidx.paging.PositionalDataSource<V> mapByPage(androidx.arch.core.util.Function<java.util.List<T>,java.util.List<V>> function); |
| 349 | 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] | 350 | } |
| 351 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 352 | @Deprecated public abstract static class PositionalDataSource.LoadInitialCallback<T> { |
| 353 | ctor @Deprecated public PositionalDataSource.LoadInitialCallback(); |
| 354 | method @Deprecated public abstract void onResult(java.util.List<? extends T> data, int position, int totalCount); |
| 355 | 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] | 356 | } |
| 357 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 358 | @Deprecated public static class PositionalDataSource.LoadInitialParams { |
| 359 | ctor @Deprecated public PositionalDataSource.LoadInitialParams(int requestedStartPosition, int requestedLoadSize, int pageSize, boolean placeholdersEnabled); |
| 360 | field @Deprecated public final int pageSize; |
| 361 | field @Deprecated public final boolean placeholdersEnabled; |
| 362 | field @Deprecated public final int requestedLoadSize; |
| 363 | field @Deprecated public final int requestedStartPosition; |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 364 | } |
| 365 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 366 | @Deprecated public abstract static class PositionalDataSource.LoadRangeCallback<T> { |
| 367 | ctor @Deprecated public PositionalDataSource.LoadRangeCallback(); |
| 368 | method @Deprecated public abstract void onResult(java.util.List<? extends T> data); |
Chris Craik | 7cb6041 | 2018-04-04 13:02:50 -0700 | [diff] [blame] | 369 | } |
| 370 | |
Dustin Lam | cee0e1e | 2020-02-04 15:12:18 -0800 | [diff] [blame] | 371 | @Deprecated public static class PositionalDataSource.LoadRangeParams { |
| 372 | ctor @Deprecated public PositionalDataSource.LoadRangeParams(int startPosition, int loadSize); |
| 373 | field @Deprecated public final int loadSize; |
| 374 | field @Deprecated public final int startPosition; |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 375 | } |
| 376 | |
Dustin Lam | 4f1cfee | 2020-03-09 09:49:22 -0700 | [diff] [blame] | 377 | public abstract class RemoteMediator<Key, Value> { |
| 378 | ctor public RemoteMediator(); |
| 379 | method public suspend Object initialize(kotlin.coroutines.Continuation<? super androidx.paging.RemoteMediator.InitializeAction> $completion); |
Dustin Lam | c9cccb6 | 2020-04-01 18:55:04 -0700 | [diff] [blame^] | 380 | 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] | 381 | } |
| 382 | |
| 383 | public enum RemoteMediator.InitializeAction { |
| 384 | enum_constant public static final androidx.paging.RemoteMediator.InitializeAction LAUNCH_INITIAL_REFRESH; |
| 385 | enum_constant public static final androidx.paging.RemoteMediator.InitializeAction SKIP_INITIAL_REFRESH; |
| 386 | } |
| 387 | |
| 388 | public abstract static sealed class RemoteMediator.MediatorResult { |
| 389 | } |
| 390 | |
| 391 | public static final class RemoteMediator.MediatorResult.Error extends androidx.paging.RemoteMediator.MediatorResult { |
| 392 | ctor public RemoteMediator.MediatorResult.Error(Throwable throwable); |
| 393 | method public Throwable getThrowable(); |
| 394 | } |
| 395 | |
| 396 | public static final class RemoteMediator.MediatorResult.Success extends androidx.paging.RemoteMediator.MediatorResult { |
| 397 | ctor public RemoteMediator.MediatorResult.Success(boolean hasMoreData); |
| 398 | method public boolean getHasMoreData(); |
| 399 | } |
| 400 | |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 401 | public final class SeparatorsKt { |
Chris Craik | 29bc469 | 2019-12-05 09:44:57 -0800 | [diff] [blame] | 402 | } |
| 403 | |
Dustin Lam | b6bab3f | 2019-05-20 08:05:34 -0700 | [diff] [blame] | 404 | } |
| 405 | |
Yigit Boyar | c77bc77 | 2019-12-20 13:14:12 -0800 | [diff] [blame] | 406 | package androidx.paging.multicast { |
| 407 | |
| 408 | public final class ChannelManagerKt { |
| 409 | } |
| 410 | |
| 411 | } |
| 412 | |