[add] function implementation

This commit is contained in:
acite
2025-08-24 20:07:38 +08:00
parent 996c1ff5cf
commit d0a6497dd6
64 changed files with 2924 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
package com.acitelight.aether.viewModel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.acitelight.aether.model.Comic
import com.acitelight.aether.model.Video
import com.acitelight.aether.service.MediaManager
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
class ComicScreenViewModel : ViewModel()
{
private val _comics = MutableStateFlow<List<Comic>>(emptyList())
val comics: StateFlow<List<Comic>> = _comics
init
{
// viewModelScope.launch {
// val l = MediaManager.listComics()
// _comics.value = l.map { MediaManager.queryComicInfo(it) }
// }
}
}