Class EcoreAnimator
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
EcoreAnimator is a helper class. It provides the functions to manage animations.
C#Copypublic static class EcoreAnimator
- Inheritance
-
EcoreAnimator
Methods
View Source
AddAnimator(Func<Boolean>)
Adds an animator to call handler
at every animation tick during the main loop execution.
Declaration
C#Copypublic static IntPtr AddAnimator(Func<bool> handler)
Parameters
Type | Name | Description |
---|---|---|
Func<System.Boolean> | handler | The function to call when it ticks off. |
Returns
Type | Description |
---|---|
System.IntPtr | A handle to the new animator. |
API Level: preview
Declaration
C#Copypublic static double GetCurrentTime()
Returns
Type | Description |
---|---|
System.Double | Current system time |
API Level: preview
Declaration
C#Copypublic static void RemoveAnimator(IntPtr anim)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | anim | The specified animator handle. |