Table of Contents

Class AnimatorBase

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class AnimatorBase : ISkiaAnimator, IDisposable
Inheritance
AnimatorBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

AnimatorBase(IDrawnBase)

public AnimatorBase(IDrawnBase parent)

Parameters

parent IDrawnBase

Fields

runDelayMs

protected double runDelayMs

Field Value

double

Properties

IsDeactivated

Can and will be removed

public bool IsDeactivated { get; set; }

Property Value

bool

IsHiddenInViewTree

For internal use by the engine

public bool IsHiddenInViewTree { get; set; }

Property Value

bool

IsPaused

Just should not execute on tick

public bool IsPaused { get; set; }

Property Value

bool

IsPostAnimator

public bool IsPostAnimator { get; set; }

Property Value

bool

IsRunning

public bool IsRunning { get; set; }

Property Value

bool

LastFrameTimeNanos

public long LastFrameTimeNanos { get; set; }

Property Value

long

OnStart

public Action OnStart { get; set; }

Property Value

Action

OnStop

public Action OnStop { get; set; }

Property Value

Action

Parent

public IDrawnBase Parent { get; protected set; }

Property Value

IDrawnBase

StartFrameTimeNanos

public long StartFrameTimeNanos { get; set; }

Property Value

long

Uid

public Guid Uid { get; set; }

Property Value

Guid

WasStarted

Main flag to detect if animator stopped after being started (WasStarted) or stop was just called on an already stopped animator.

public bool WasStarted { get; protected set; }

Property Value

bool

Methods

Cancel()

public virtual void Cancel()

Dispose()

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

public virtual void Dispose()

OnRunningStateChanged(bool)

protected virtual void OnRunningStateChanged(bool isRunning)

Parameters

isRunning bool

Pause()

Used by ui, please use play stop for manual control

public virtual void Pause()

Radians(double)

public static double Radians(double degrees)

Parameters

degrees double

Returns

double

Register()

protected bool Register()

Returns

bool

Resume()

Used by ui, please use play stop for manual control

public virtual void Resume()

Start(double)

public virtual void Start(double delayMs = 0)

Parameters

delayMs double

Stop()

public virtual void Stop()

TickFrame(long)

Time in NANOS

public virtual bool TickFrame(long frameTimeNanos)

Parameters

frameTimeNanos long

Returns

bool

Unregister()

protected void Unregister()