DefaultRenderTimer Class

Summary

Defines a default render timer that uses a standard timer.
Namespace
Avalonia.Rendering
Interfaces
Base Types
  • object
Derived Types
graph BT Type-->Base0["object"] Type-.->Interface0["IRenderTimer"] click Interface0 "/api/Avalonia.Rendering/IRenderTimer" Type["DefaultRenderTimer"] class Type type-node Derived0["UiThreadRenderTimer"]-->Type click Derived0 "/api/Avalonia.Rendering/UiThreadRenderTimer"

Syntax

public class DefaultRenderTimer : IRenderTimer

Remarks

This class may be overridden by platform implementations to use a specialized timer implementation.

Constructors

Name Summary
DefaultRenderTimer(int) Initializes a new instance of the DefaultRenderTimer class.

Events

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

Properties

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

Methods

Name Value Summary
Start() void
Starts the timer.
StartCore(Action<TimeSpan>) IDisposable
Provides the implementation of starting the timer.
Stop() void
Stops the timer.