Class EcoreTimelineAnimator
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
EcoreTimelineAnimator is a helper class, which provides the functions to manage animations.
public class EcoreTimelineAnimator
- Inheritance
-
EcoreTimelineAnimator
Constructors
View SourceEcoreTimelineAnimator(Double, Action)
Creates and initializes a new instance of the EcoreTimelineAnimator class.
Declaration
public EcoreTimelineAnimator(double runtime, Action timelineCallback)
Parameters
Type | Name | Description |
---|---|---|
Double | runtime | The time to run in seconds. |
Action | timelineCallback | Functions called at each time line. |
API Level: preview
Properties
View SourceIsRunning
Gets whether the animation is running.
Declaration
public bool IsRunning { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: preview
View SourcePosition
Gets the current position of the animation.
Declaration
public double Position { get; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
Methods
View SourceFreeze()
Suspends the specified animator.
Declaration
public void Freeze()
API Level: preview
View SourceOnTimeline()
Callback is called when it ticks off.
Declaration
protected void OnTimeline()
API Level: preview
View SourceStart()
Starts an animator that runs for a limited time.
Declaration
public void Start()
API Level: preview
View SourceStop()
Stops an animator that is running.
Declaration
public void Stop()
API Level: preview
View SourceThaw()
Restores execution of the specified animator.
Declaration
public void Thaw()
API Level: preview
Events
View SourceFinished
It occurs when the animator is complete.
Declaration
public event EventHandler Finished
Event Type
Type | Description |
---|---|
EventHandler |