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
constructor()

Functions

Link copied to clipboard
override fun getLifecycle(): Lifecycle

Inherited functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)