Class EcoreAnimator

Definition

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

EcoreAnimator is a helper class. It provides the functions to manage animations.

C#
Copy
public static class EcoreAnimator
Inheritance
System.Object
EcoreAnimator

Methods

View Source

AddAnimator(Func<Boolean>)

Adds an animator to call handler at every animation tick during the main loop execution.

Declaration
C#
Copy
public static IntPtr AddAnimator(Func<bool> handler)
Parameters
Type Name Description
System.Func<Boolean> handler

The function to call when it ticks off.

Returns
Type Description
System.IntPtr

A handle to the new animator.

API Level: preview
View Source

GetCurrentTime()

Gets the current system time as a floating point value in seconds.

Declaration
C#
Copy
public static double GetCurrentTime()
Returns
Type Description
System.Double

Current system time

API Level: preview
View Source

RemoveAnimator(IntPtr)

Removes the specified animator from the animator list.

Declaration
C#
Copy
public static void RemoveAnimator(IntPtr anim)
Parameters
Type Name Description
System.IntPtr anim

The specified animator handle.

API Level: preview