onDestroy

open override fun onDestroy(owner: LifecycleOwner)

DefaultLifecycleObserver callback: tears down this controller when the host owner is destroyed. Delegates to shutdown; safe even if shutdown was already called explicitly.