onDestroy

open override fun onDestroy(owner: LifecycleOwner)

DefaultLifecycleObserver.onDestroy is called when the LifecycleOwner's ON_DESTROY event is thrown. This typically happens when the Activity or Fragment is in the process of being permanently destroyed.