onStop

abstract fun onStop(lifecycleOwner: LifecycleOwner)

Called when the LifecycleOwner's state transitions to ON_STOP. This typically happens when the associated UI component is no longer visible to the user.

Parameters

lifecycleOwner

The LifecycleOwner whose state has changed.