在我的ViewModel中,我发出API请求,并使用StateFlow和SharedFlow与片段进行通信。在发出API请求时,我可以轻松地更新状态流的值,并成功地将其收集到片段中。class MainViewModel: ViewModel() {
private val _loading = Mu
private val basicDataStore = BasicDataStore(application) : StateFlow<Boolean> get() fun setServiceRunningcom.mua.roti.data.datastore.BasicDataStore$serviceRunning$$i