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.WpfAssembly: CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax public Task WaitForRenderIdleAsync(
int idleTimeInMs = 500,
TimeSpan? timeout = null,
CancellationToken cancellationToken = default
)
public:
Task^ WaitForRenderIdleAsync(
int idleTimeInMs = 500,
Nullable<TimeSpan> timeout = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
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
TaskTask that resolves when page rendering has been idle for
idleTimeInMsSee Also