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 @MainThread public void observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.Observer<? super T>); 11 method @MainThread public void observeForever(androidx.lifecycle.Observer<? super T>); 12 method protected void onActive(); 13 method protected void onInactive(); 14 method protected void postValue(T!); 15 method @MainThread public void removeObserver(androidx.lifecycle.Observer<? super T>); 16 method @MainThread public void removeObservers(androidx.lifecycle.LifecycleOwner); 17 method @MainThread protected void setValue(T!); 18 } 19 20 public class MutableLiveData<T> extends androidx.lifecycle.LiveData<T> { 21 ctor public MutableLiveData(); 22 ctor public MutableLiveData(T!); 23 method public void postValue(T!); 24 method public void setValue(T!); 25 } 26 27 public interface Observer<T> { 28 method public void onChanged(T!); 29 } 30 31} 32 33