onStateChanged
Handles Android lifecycle events from the host LifecycleOwner.
ON_PAUSE/ON_RESUMEpause and resume the underlying WebView.ON_DESTROYcalls destroy, which also removes this observer from the lifecycle.
Handles Android lifecycle events from the host LifecycleOwner.
ON_PAUSE / ON_RESUME pause and resume the underlying WebView.
ON_DESTROY calls destroy, which also removes this observer from the lifecycle.