onDetach

open fun onDetach()

Called when menu is being detached from activity. This means that activity is in the background or is getting destroyed.