onDestroy

open override fun onDestroy(owner: LifecycleOwner)

Notifies that ON_DESTROY event occurred.

This method will be called before the LifecycleOwner's onDestroy method is called.

Parameters

owner

the component, whose state was changed