on Destroy
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.
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.