Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.59 KB

coredispatcher_processevents_1611214514.md

File metadata and controls

31 lines (22 loc) · 1.59 KB
-api-id -api-type
M:Windows.UI.Core.CoreDispatcher.ProcessEvents(Windows.UI.Core.CoreProcessEventsOption)
winrt method

Windows.UI.Core.CoreDispatcher.ProcessEvents

-description

Starts the dispatcher processing the input event queue for this instance of CoreWindow.

-parameters

-param options

Determines how many events to process, and if this method should block.

-remarks

- UWP app using DirectX with C++

Call this method to dispatch events from your view provider's main app loop defined in the IFrameworkView.Run method. If your window is visible, call it with CoreProcessEventsOption.ProcessAllIfPresent to dispatch current events and continue. If your window is not visible, use CoreProcessEventsOption.ProcessOneAndAllPending to block until the next event and prevent busy waiting.

- Other App Models

If you are using another app model, such as XAML or JavaScript, you do not need to call this method. To avoid reentrancy scenarios in your UWP app using C++, C#, or Visual Basic with XAML, use the types and methods in the provided XAML namespaces, which call this method in the appropriate context.

-warning

This method fails if called recursively. When it fails, call RoOriginateError to obtain the error and the message supplied to an attached debugger.

-examples

-see-also