Table of Contents

Class SleepLoopRenderTimer

Namespace
Avalonia.Rendering
Assembly
Avalonia.Base.dll
[PrivateApi]
public class SleepLoopRenderTimer : IRenderTimer
Inheritance
SleepLoopRenderTimer
Implements
Inherited Members

Constructors

SleepLoopRenderTimer(int)

public SleepLoopRenderTimer(int fps)

Parameters

fps int

Properties

RunsInBackground

Indicates if the timer ticks on a non-UI thread

public bool RunsInBackground { get; }

Property Value

bool

Events

Tick

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

public 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.