RendererPriorityPolicy class

Class that represents the priority policy will be used to determine whether an out of process renderer should be considered to be a target for OOM killing. When a WebView is destroyed it will cease to be considerered when calculating the renderer priority. Once no WebViews remain associated with the renderer, the priority of the renderer will be reduced to RendererPriority.RENDERER_PRIORITY_WAIVED. The default policy is to set the priority to RendererPriority.RENDERER_PRIORITY_IMPORTANT regardless of visibility, and this should not be changed unless the caller also handles renderer crashes with WebView.androidOnRenderProcessGone. Any other setting will result in WebView renderers being killed by the system more aggressively than the application.


RendererPriorityPolicy({required RendererPriority? rendererRequestedPriority, required bool waivedWhenNotVisible})


hashCode int
The hash code for this object.
no setterinherited
rendererRequestedPriority RendererPriority?
The minimum priority at which this WebView desires the renderer process to be bound.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
waivedWhenNotVisible bool
If true, this flag specifies that when this WebView is not visible, it will be treated as if it had requested a priority of RendererPriority.RENDERER_PRIORITY_WAIVED.
getter/setter pair


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

fromMap(Map<String, dynamic>? map) RendererPriorityPolicy?