ViewModelLifecycleObserver

fun interface ViewModelLifecycleObserver : LifecycleObserver

Author

skydoves (Jaewoong Eum)

A lifecycle observer that extends LifecycleObserver to track ViewModelState from the ViewModel.

Functions

Link copied to clipboard
abstract fun onStateChanged(viewModelState: ViewModelState)

Invoked when the ViewModel's lifecycle state is changed.

Inheritors

Link copied to clipboard