-
public final class SingleLiveEvent<T extends Object> extends MutableLiveData<T>
-
-
Field Summary
Fields Modifier and Type Field Description private final ObjectmDataLockprivate final IntegermActiveCountprivate final ObjectmPendingData
-
Constructor Summary
Constructors Constructor Description SingleLiveEvent()
-
Method Summary
Modifier and Type Method Description Unitobserve(LifecycleOwner owner, Observer<in T> observer)UnitsetValue(@Nullable() T t)final Unitcall()Used for cases where T is Void, to make calls cleaner. -
Methods inherited from class androidx.lifecycle.MutableLiveData
dispatchingValue, getValue, getVersion, hasActiveObservers, hasObservers, observeForever, onActive, onInactive, removeObserver, removeObservers -
Methods inherited from class tv.mycujoo.mcls.model.SingleLiveEvent
postValue -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
observe
@MainThread() Unit observe(LifecycleOwner owner, Observer<in T> observer)
-
setValue
@MainThread() Unit setValue(@Nullable() T t)
-
call
@MainThread() final Unit call()
Used for cases where T is Void, to make calls cleaner.
-
-
-
-