1package androidx.lifecycle { 2 3 public abstract class LiveData<T> { 4 ctor public LiveData(); 5 method public T getValue(); 6 method public boolean hasActiveObservers(); 7 method public boolean hasObservers(); 8 method public void observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Observer<? super T>); 9 method public void observeForever(androidx.lifecycle.Observer<? super T>); 10 method protected void onActive(); 11 method protected void onInactive(); 12 method protected void postValue(T); 13 method public void removeObserver(androidx.lifecycle.Observer<? super T>); 14 method public void removeObservers(androidx.lifecycle.LifecycleOwner); 15 method protected void setValue(T); 16 } 17 18 public class MutableLiveData<T> extends androidx.lifecycle.LiveData { 19 ctor public MutableLiveData(); 20 method public void postValue(T); 21 method public void setValue(T); 22 } 23 24 public abstract interface Observer<T> { 25 method public abstract void onChanged(T); 26 } 27 28} 29 30