WebView.OnPause Method

Definition

Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation.

[Android.Runtime.Register("onPause", "()V", "GetOnPauseHandler")]
public virtual void OnPause ();
[<Android.Runtime.Register("onPause", "()V", "GetOnPauseHandler")>]
abstract member OnPause : unit -> unit
override this.OnPause : unit -> unit
Attributes

Remarks

Does a best-effort attempt to pause any processing that can be paused safely, such as animations and geolocation. Note that this call does not pause JavaScript. To pause JavaScript globally, use #pauseTimers.

To resume WebView, call #onResume.

Java documentation for android.webkit.WebView.onPause().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to