Class SkiaValueAnimator
public class SkiaValueAnimator : AnimatorBase, ISkiaAnimator, IDisposable
- Inheritance
-
SkiaValueAnimator
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SkiaValueAnimator(IDrawnBase)
public SkiaValueAnimator(IDrawnBase parent)
Parameters
parentIDrawnBase
Fields
Debug
public static bool Debug
Field Value
FrameTimeInterpolator
protected FrameTimeInterpolator FrameTimeInterpolator
Field Value
Properties
CycleFInished
Animator self finished a cycle, might still repeat
public Action CycleFInished { get; set; }
Property Value
Easing
public Easing Easing { get; set; }
Property Value
ElapsedMs
public double ElapsedMs { get; protected set; }
Property Value
Finished
Animator self finished running without being stopped manually
public Action Finished { get; set; }
Property Value
OnUpdated
public Action<double> OnUpdated { get; set; }
Property Value
Progress
We are using this internally to apply easing. Can be above 1 when finishing. If you need progress 0-1 use ProgressAnimator.
protected double Progress { get; set; }
Property Value
Repeat
-1 means forever..
public int Repeat { get; set; }
Property Value
Speed
public double Speed { get; set; }
Property Value
UseInterpolator
public bool UseInterpolator { get; set; }
Property Value
mMaxValue
public double mMaxValue { get; set; }
Property Value
mMinValue
public double mMinValue { get; set; }
Property Value
mStartValueIsSet
public bool mStartValueIsSet { get; protected set; }
Property Value
mValue
public double mValue { get; set; }
Property Value
Methods
ClampOnStart()
protected virtual void ClampOnStart()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()
FinishedRunning()
protected virtual bool FinishedRunning()
Returns
GetNanoseconds()
public static long GetNanoseconds()
Returns
OnRunningStateChanged(bool)
protected override void OnRunningStateChanged(bool isRunning)
Parameters
isRunningbool
RunAsync(Action, CancellationToken)
public virtual Task RunAsync(Action initialize, CancellationToken cancellationToken = default)
Parameters
initializeActioncancellationTokenCancellationToken
Returns
Seek(float)
public void Seek(float msTime)
Parameters
msTimefloat
SetSpeed(double)
public SkiaValueAnimator SetSpeed(double value)
Parameters
valuedouble
Returns
SetValue(double)
public SkiaValueAnimator SetValue(double value)
Parameters
valuedouble
Returns
Start(double)
public override void Start(double delayMs = 0)
Parameters
delayMsdouble
Stop()
public override void Stop()
TickFrame(long)
Time in NANOS
public override bool TickFrame(long frameTimeNanos)
Parameters
frameTimeNanoslong
Returns
TransformReportedValue(long)
/// Passed over mValue, you can change the reported passed value here
protected virtual double TransformReportedValue(long deltaT)
Parameters
deltaTlong
Returns
- double
modified mValue for callback consumer
UpdateValue(long, long)
Update mValue using time distance between rendered frames. Return true if anims is finished.
protected virtual bool UpdateValue(long deltaT, long deltaFromStart)