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