DestructibleLifecycleOwner

A lifecycle owner that can be destroyed.

Destruction is unrecoverable and will move the state to Lifecycle.State.DESTROYED.

Inheritors

Inherited properties

Link copied to clipboard
abstract val lifecycle: Lifecycle

Functions

Link copied to clipboard
abstract fun destroy()

Moves the lifecycle owner to the destroyed state. May not be called from the Lifecycle.State.INITIALIZED state.

Inherited functions

Link copied to clipboard

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