LifecycleViewModel

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
Link copied to clipboard

Creates a new LifecycleOwner that limits the state of this LifecycleOwner to Lifecycle.State.CREATED if the view is detached.