类 EaseSingleSourceLiveData<T>
- java.lang.Object
-
- androidx.lifecycle.LiveData<T>
-
- androidx.lifecycle.MutableLiveData<T>
-
- io.agora.chat.uikit.widget.video.EaseSingleSourceLiveData<T>
-
- 类型参数:
T- Listening data source type
public class EaseSingleSourceLiveData<T> extends androidx.lifecycle.MutableLiveData<T>Use LiveData when setting up and listening to a single data source It is convenient to automatically cancel the monitoring of the previous data source when the data source needs to be switched.
-
-
构造器概要
构造器 构造器 说明 EaseSingleSourceLiveData()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidonActive()protected voidonInactive()voidsetSource(androidx.lifecycle.LiveData<T> source)Set the data source, when there is a data source that has been set, the monitoring of the data source will be canceled
-
-
-
方法详细资料
-
setSource
public void setSource(androidx.lifecycle.LiveData<T> source)
Set the data source, when there is a data source that has been set, the monitoring of the data source will be canceled- 参数:
source-
-
onActive
protected void onActive()
- 覆盖:
onActive在类中androidx.lifecycle.LiveData<T>
-
onInactive
protected void onInactive()
- 覆盖:
onInactive在类中androidx.lifecycle.LiveData<T>
-
-