Skip to main content

DispatcherOptions Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

AppBuilder options for configuring the Avalonia.Threading.Dispatcher.

public class DispatcherOptions

Inheritance: object -> DispatcherOptions

Constructors​

NameDescription
DispatcherOptionsNo summary available.

DispatcherOptions Constructor​

public DispatcherOptions()

Properties​

NameDescription
InputStarvationTimeoutGets or sets a timeout after which the dispatcher will start prioritizing input events over rendering. The default value is 1 second.

InputStarvationTimeout Property​

Gets or sets a timeout after which the dispatcher will start prioritizing input events over rendering. The default value is 1 second.

public TimeSpan InputStarvationTimeout { get; set; }

Remarks​

If no input events are processed within this time, the dispatcher will start prioritizing input events over rendering to prevent the application from becoming unresponsive. This may need to be lowered on resource-constrained platforms where input events are processed on the same thread as rendering.