WrapperViewModel

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

A wrapper ViewModel used to hold an arbitrary value.

Constructors

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

Properties

Link copied to clipboard
val value: 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?