onDestroy

open fun onDestroy()

Called when the window is being destroyed. Usually this means that the user has closed the window.