自StateFlow/ SharedFlow 出现后, 官方开始推荐在MVVM 中使用Flow 替换LiveData。 ( 见文章:从LiveData 迁移到Kotlin 数据流) Flow 基于协程实现,具有丰富的操作 ...
確定! 回上一頁