Table of Contents

Class Looper

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class Looper : IDisposable
Inheritance
Looper
Implements
Inherited Members
Extension Methods

Constructors

Looper()

public Looper()

Looper(Action)

public Looper(Action onFrame)

Parameters

onFrame Action

Properties

Cancel

public CancellationTokenSource Cancel { get; protected set; }

Property Value

CancellationTokenSource

IsRunning

public bool IsRunning { get; protected set; }

Property Value

bool

OnFrame

public Action OnFrame { get; set; }

Property Value

Action

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

SetTargetFps(int)

public void SetTargetFps(int targetFps)

Parameters

targetFps int

Start(int, bool)

public void Start(int targetFps, bool useLegacy = false)

Parameters

targetFps int
useLegacy bool

StartLegacyLooperAsync(CancellationToken)

protected Task StartLegacyLooperAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

StartLooperAsync(CancellationToken)

protected Task StartLooperAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

StartOnMainThread(int, bool)

public void StartOnMainThread(int targetFps, bool useLegacy = false)

Parameters

targetFps int
useLegacy bool

Stop()

public void Stop()