onStop

fun LifecycleOwner.onStop(block: () -> Unit): <Error class: unknown class>

Runs the given block on every Lifecycle.Event.ON_STOP.

Return

Disposable that allows removing the observer.