Class EcoreTimelineAnimator

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

EcoreTimelineAnimator is a helper class, which provides the functions to manage animations.

C#
Copy
public class EcoreTimelineAnimator
Inheritance
System.Object
EcoreTimelineAnimator

Constructors

View Source

EcoreTimelineAnimator(Double, Action)

Creates and initializes a new instance of the EcoreTimelineAnimator class.

Declaration
C#
Copy
public EcoreTimelineAnimator(double runtime, Action timelineCallback)
Parameters
Type Name Description
System.Double runtime

The time to run in seconds.

System.Action timelineCallback

Functions called at each time line.

API Level: preview

Properties

View Source

IsRunning

Gets whether the animation is running.

Declaration
C#
Copy
public bool IsRunning { get; }
Property Value
Type Description
Boolean
API Level: preview
View Source

Position

Gets the current position of the animation.

Declaration
C#
Copy
public double Position { get; }
Property Value
Type Description
System.Double
API Level: preview

Methods

View Source

Freeze()

Suspends the specified animator.

Declaration
C#
Copy
public void Freeze()
API Level: preview
View Source

OnTimeline()

Callback is called when it ticks off.

Declaration
C#
Copy
protected void OnTimeline()
API Level: preview
View Source

Start()

Starts an animator that runs for a limited time.

Declaration
C#
Copy
public void Start()
API Level: preview
View Source

Stop()

Stops an animator that is running.

Declaration
C#
Copy
public void Stop()
API Level: preview
View Source

Thaw()

Restores execution of the specified animator.

Declaration
C#
Copy
public void Thaw()
API Level: preview

Events

View Source

Finished

It occurs when the animator is complete.

Declaration
C#
Copy
public event EventHandler Finished
Event Type
Type Description
System.EventHandler
API Level: preview