Table of Contents

Interface IRenderTimer

Namespace
Avalonia.Rendering
Assembly
Avalonia.Base.dll

Defines the interface implemented by an application render timer.

[PrivateApi]
public interface IRenderTimer

Properties

RunsInBackground

Indicates if the timer ticks on a non-UI thread

bool RunsInBackground { get; }

Property Value

bool

Events

Tick

Raised when the render timer ticks to signal a new frame should be drawn.

event Action<TimeSpan> Tick

Event Type

Action<TimeSpan>

Remarks

This event can be raised on any thread; it is the responsibility of the subscriber to switch execution to the right thread.