UiThreadRenderTimer Class

Summary

Render timer that ticks on UI thread. Useful for debugging or bootstrapping on new platforms
Namespace
Avalonia.Rendering
Interfaces
Base Types
graph BT Type-->Base0["DefaultRenderTimer"] click Base0 "/api/Avalonia.Rendering/DefaultRenderTimer" Base0-->Base1["object"] Type-.->Interface0["IRenderTimer"] click Interface0 "/api/Avalonia.Rendering/IRenderTimer" Type["UiThreadRenderTimer"] class Type type-node

Syntax

public class UiThreadRenderTimer : DefaultRenderTimer, IRenderTimer

Constructors

Events

Name Type Summary
Tick Action<TimeSpan>
Raised when the render timer ticks to signal a new frame should be drawn.
Inherited from DefaultRenderTimer

Properties

Name Value Summary
FramesPerSecond int
Gets the number of frames per second at which the loop runs.
Inherited from DefaultRenderTimer

Methods

Name Value Summary
Start() void
Starts the timer.
Inherited from DefaultRenderTimer
StartCore(Action<TimeSpan>) IDisposable
Stop() void
Stops the timer.
Inherited from DefaultRenderTimer