Click or drag to resize

ChromiumWebBrowserWaitForRenderIdleAsync Method

Version 130.1.90
Waits for the page rendering to be idle for idleTimeInMs. Rendering is considered to be idle when no Paint events have occured for idleTimeInMs. This is useful for scenarios like taking a screen shot.

Namespace: CefSharp.OffScreen
Assembly: CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public Task WaitForRenderIdleAsync(
	int idleTimeInMs = 500,
	TimeSpan? timeout = null,
	CancellationToken cancellationToken = default
)

Parameters

idleTimeInMs  Int32  (Optional)
optional idleTime in miliseconds, default to 500ms
timeout  NullableTimeSpan  (Optional)
optional timeout, if not specified defaults to thirty(30) seconds.
cancellationToken  CancellationToken  (Optional)
optional CancellationToken

Return Value

Task
Task that resolves when page rendering has been idle for idleTimeInMs
See Also