LifecycleTracker

A lifecycle tracker that can be used to track the lifecycle of the application.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override var currentState: State

Returns the current state of the Lifecycle.

Functions

Link copied to clipboard
open override fun addObserver(observer: LifecycleObserver)

Adds a LifecycleObserver that will be notified when the LifecycleOwner changes state.

Link copied to clipboard

Sets the current state and notifies the observers.

Link copied to clipboard
open override fun removeObserver(observer: LifecycleObserver)

Removes the given observer from the observers list.