Aurimas Liutikas | 3aa5a20 | 2020-10-05 09:42:14 -0700 | [diff] [blame] | 1 | // Signature format: 4.0 |
Alan Viverette | 6c56334 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 2 | package androidx.lifecycle { |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 3 | |
Jeff Gaston | c21caf9 | 2018-10-16 13:24:41 -0400 | [diff] [blame] | 4 | public class MediatorLiveData<T> extends androidx.lifecycle.MutableLiveData<T> { |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 5 | ctor public MediatorLiveData(); |
Sanura N'Jaka | b415585 | 2022-08-31 00:17:51 +0000 | [diff] [blame] | 6 | ctor public MediatorLiveData(T!); |
Jeff Gaston | 6edd4a4 | 2019-04-12 20:19:05 -0400 | [diff] [blame] | 7 | method @MainThread public <S> void addSource(androidx.lifecycle.LiveData<S!>, androidx.lifecycle.Observer<? super S>); |
| 8 | method @MainThread public <S> void removeSource(androidx.lifecycle.LiveData<S!>); |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 9 | } |
| 10 | |
Sanura N'Jaka | f54be2b | 2023-01-10 01:35:09 +0000 | [diff] [blame] | 11 | public final class Transformations { |
| 12 | method @CheckResult @MainThread public static <X> androidx.lifecycle.LiveData<X> distinctUntilChanged(androidx.lifecycle.LiveData<X>); |
sanura | e35f3b8 | 2023-01-10 18:34:38 +0000 | [diff] [blame] | 13 | method @Deprecated @CheckResult @MainThread public static <X, Y> androidx.lifecycle.LiveData<Y> map(androidx.lifecycle.LiveData<X>, androidx.arch.core.util.Function<X,Y> mapFunction); |
Julia McClellan | 3512804 | 2023-05-09 10:28:47 -0400 | [diff] [blame^] | 14 | method @CheckResult @MainThread public static <X, Y> androidx.lifecycle.LiveData<Y> map(androidx.lifecycle.LiveData<X>, kotlin.jvm.functions.Function1<X,Y> transform); |
sanura | e35f3b8 | 2023-01-10 18:34:38 +0000 | [diff] [blame] | 15 | method @Deprecated @CheckResult @MainThread public static <X, Y> androidx.lifecycle.LiveData<Y> switchMap(androidx.lifecycle.LiveData<X>, androidx.arch.core.util.Function<X,androidx.lifecycle.LiveData<Y>> switchMapFunction); |
Julia McClellan | 3512804 | 2023-05-09 10:28:47 -0400 | [diff] [blame^] | 16 | method @CheckResult @MainThread public static <X, Y> androidx.lifecycle.LiveData<Y> switchMap(androidx.lifecycle.LiveData<X>, kotlin.jvm.functions.Function1<X,androidx.lifecycle.LiveData<Y>> transform); |
Ian Lake | 3f841f9 | 2017-12-14 13:49:05 -0800 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | } |
| 20 | |