Compartilhar via


CoreWebView2Settings.PreferredOverrideTimerWakeInterval Property

Definition

public TimeSpan PreferredOverrideTimerWakeInterval { get; set; }
member this.PreferredOverrideTimerWakeInterval : TimeSpan with get, set
Public Property PreferredOverrideTimerWakeInterval As TimeSpan

Property Value

Remarks

This is a category specific to WebView2 with no corresponding state in the Chromium tab state model.

A wake up interval is the amount of time that needs to pass before the WebView2 Runtime checks for new timer tasks to run.

The WebView2 Runtime will try to respect the preferred interval set by the application, but the effective value will be constrained by resource and platform limitations. Setting a value of 0 means a preference of 0 ms between timer wake ups. The default value is a constant determined by the running version of the WebView2 Runtime. Setting the value of this property will take effect immediately.

For example, an application might use an override timer wake interval of 30 ms to reduce resource consumption from third party frames in the WebView. In this case, timers will run at most every 30 ms.

Applies to