WebView.ClearView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Clears this WebView so that onDraw() will draw nothing but white background, and onMeasure() will return 0 if MeasureSpec is not MeasureSpec.
[Android.Runtime.Register("clearView", "()V", "GetClearViewHandler")]
[System.Obsolete("deprecated")]
public virtual void ClearView ();
[<Android.Runtime.Register("clearView", "()V", "GetClearViewHandler")>]
[<System.Obsolete("deprecated")>]
abstract member ClearView : unit -> unit
override this.ClearView : unit -> unit
- Attributes
Remarks
Clears this WebView so that onDraw() will draw nothing but white background, and onMeasure() will return 0 if MeasureSpec is not MeasureSpec.EXACTLY.
This member is deprecated. Use WebView.loadUrl("about:blank") to reliably reset the view state and release page resources (including any running JavaScript).
Java documentation for android.webkit.WebView.clearView()
.
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.