Package 

Class UiData


  • 
    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

    • Constructor Summary

      Constructors 
      Constructor Description
      UiData(T initValue)
    • Method Summary

      Modifier and Type Method Description
      T getValue()
      Unit setValue(T value) Inform user about non-nullability from Java call site
      Unit postValue(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)