LifecycleViewModel

abstract class LifecycleViewModel : ViewModel, LifecycleOwner

A ViewModel with a LifecycleOwner, allowing it to easily bind to lifecycle dependent components such as LiveData.

Constructors

Link copied to clipboard
fun LifecycleViewModel()

Functions

Link copied to clipboard
override fun getLifecycle(): Lifecycle

Inherited functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun clear()
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T