Skip to content

//app/dev.atick.compose.ui.details/DetailsViewModel

DetailsViewModel

[androidJvm]\ class DetailsViewModel@Injectconstructor(postsRepository: PostsRepository, savedStateHandle: SavedStateHandle) : ViewModel

Constructors

DetailsViewModel [androidJvm]
@Inject
constructor(postsRepository: PostsRepository, savedStateHandle: SavedStateHandle)

Properties

Name Summary
detailsUiState [androidJvm]
val detailsUiState: StateFlow<UiState<UiPost>>

Functions

Name Summary
addCloseable [androidJvm]
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
getCloseable [androidJvm]
fun <T : AutoCloseable> getCloseable(key: String): T?