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

Properties

Link copied to clipboard
override val lifecycle: Lifecycle

Inherited functions

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