MutableLiveData<T> class

Inheritance

Constructors

MutableLiveData()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
observerMap Map<String, LiveDataObserver<T>>
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value ↔ dynamic
read / write

Methods

addObserver(LifecycleOwner owner, LiveDataObserver<T> observer) → void
添加观察者
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onLifecycleStateChange(LifecycleOwner lifecycleOwner) → void
生命周期改变
override
removeObserver(LiveDataObserver<T> observer) → void
移除观察者
inherited
setValue(T value) → void
设置value
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited