Flow/SharedFlow/StateFlow. LiveData特点. LiveData具有感知生命周期,避免内存泄漏; LiveData只能主线程更新数据, postValue 本质调用 setValue ...
確定! 回上一頁