1// Signature format: 4.0 2package androidx.lifecycle { 3 4 public abstract class LiveData<T> { 5 ctor public LiveData(); 6 ctor public LiveData(T!); 7 method public T? getValue(); 8 method public boolean hasActiveObservers(); 9 method public boolean hasObservers(); 10 method public boolean isInitialized(); 11 method @MainThread public void observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Observer<? super T!>); 12 method @MainThread public void observeForever(androidx.lifecycle.Observer<? super T!>); 13 method protected void onActive(); 14 method protected void onInactive(); 15 method protected void postValue(T!); 16 method @MainThread public void removeObserver(androidx.lifecycle.Observer<? super T!>); 17 method @MainThread public void removeObservers(androidx.lifecycle.LifecycleOwner); 18 method @MainThread protected void setValue(T!); 19 } 20 21 public final class LiveDataKt { 22 method @Deprecated @MainThread public static inline <T> androidx.lifecycle.Observer<T> observe(androidx.lifecycle.LiveData<T>, androidx.lifecycle.LifecycleOwner owner, kotlin.jvm.functions.Function1<? super T,kotlin.Unit> onChanged); 23 } 24 25 public class MutableLiveData<T> extends androidx.lifecycle.LiveData<T!> { 26 ctor public MutableLiveData(); 27 ctor public MutableLiveData(T!); 28 method public void postValue(T!); 29 method public void setValue(T!); 30 } 31 32 public fun interface Observer<T> { 33 method public void onChanged(T value); 34 } 35 36} 37 38