onDestroy

open fun onDestroy(@NonNull owner: LifecycleOwner)

Called when the lifecycle owner (the fragment) is destroyed. Removes this adapter as a lifecycle observer.

Parameters

owner

The lifecycle owner that is being destroyed.