onDestroy

open fun onDestroy()

You must call this method from the parent's Activity#onDestroy() or Fragment#onDestroyView().