-
public final class UiData<T extends Object> extends MutableLiveData<T>
Mutable live data abstraction with non nullable value type. You need to initialize it with non null value. You can use one of the init functions or extension function
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectmDataLockprivate final IntegermActiveCountprivate final ObjectmPendingData
-
Method Summary
Modifier and Type Method Description TgetValue()UnitsetValue(T value)Inform user about non-nullability from Java call site UnitpostValue(T value)Inform user about non-nullability from Java call site final <R extends Any> UiDataMediator<R>map(Function1<T, R> mapper)-
Methods inherited from class androidx.lifecycle.MutableLiveData
changeActiveCounter, dispatchingValue, getVersion, hasActiveObservers, hasObservers, isInitialized, observe, observeForever, onActive, onInactive, removeObserver, removeObservers -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UiData
UiData(T initValue)
-
-
-
-