WrapperViewModel

class WrapperViewModel<T>(provider: (CoroutineScope) -> StateFlow<T>) : ViewModel

A wrapper ViewModel used to hold an arbitrary value.

Constructors

Link copied to clipboard
constructor(provider: (CoroutineScope) -> StateFlow<T>)

Properties

Link copied to clipboard
val value: StateFlow<T>

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?