WebView.EnableSlowWholeDocumentDraw Method

Definition

For apps targeting the L release, WebView has a new default behavior that reduces memory footprint and increases performance by intelligently choosing the portion of the HTML document that needs to be drawn.

[Android.Runtime.Register("enableSlowWholeDocumentDraw", "()V", "")]
public static void EnableSlowWholeDocumentDraw ();
[<Android.Runtime.Register("enableSlowWholeDocumentDraw", "()V", "")>]
static member EnableSlowWholeDocumentDraw : unit -> unit
Attributes

Remarks

For apps targeting the L release, WebView has a new default behavior that reduces memory footprint and increases performance by intelligently choosing the portion of the HTML document that needs to be drawn. These optimizations are transparent to the developers. However, under certain circumstances, an App developer may want to disable them: <ol> <li>When an app uses #onDraw to do own drawing and accesses portions of the page that is way outside the visible portion of the page.</li> <li>When an app uses #capturePicture to capture a very large HTML document. Note that capturePicture is a deprecated API.</li> </ol> Enabling drawing the entire HTML document has a significant performance cost. This method should be called before any WebViews are created.

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

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