Class Looper
public class Looper : IDisposable
- Inheritance
-
Looper
- Implements
- Inherited Members
- Extension Methods
Constructors
Looper()
public Looper()
Looper(Action)
public Looper(Action onFrame)
Parameters
onFrameAction
Properties
Cancel
public CancellationTokenSource Cancel { get; protected set; }
Property Value
IsRunning
public bool IsRunning { get; protected set; }
Property Value
OnFrame
public Action OnFrame { get; set; }
Property Value
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
targetFpsint
Start(int, bool)
public void Start(int targetFps, bool useLegacy = false)
Parameters
StartLegacyLooperAsync(CancellationToken)
protected Task StartLegacyLooperAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
StartLooperAsync(CancellationToken)
protected Task StartLooperAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
StartOnMainThread(int, bool)
public void StartOnMainThread(int targetFps, bool useLegacy = false)
Parameters
Stop()
public void Stop()