Class RiveAnimationView

Definition

Namespace:
Tizen.NUI.Extension
Assembly:
Tizen.NUI.Extension.dll
API Level:
9

RiveAnimationView renders an animated vector image (Rive file).

C#
Copy
public class RiveAnimationView : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
Inheritance
System.Object
Tizen.NUI.Binding.Element
RiveAnimationView
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

RiveAnimationView(String)

RiveAnimationView constructor.

Declaration
C#
Copy
public RiveAnimationView(string url)
Parameters
Type Name Description
System.String url

The rive resource URL

API Level: 9

Methods

View Source

EnableAnimation(String, Boolean)

Enables or disables the given animation.

Declaration
C#
Copy
public void EnableAnimation(string animationName, bool on)
Parameters
Type Name Description
System.String animationName

The animation to enable

Boolean on

The enable state of given animation

API Level: 9
View Source

Pause()

Pause animation.

Declaration
C#
Copy
public void Pause()
API Level: 9
View Source

Play()

Play animation.

Declaration
C#
Copy
public void Play()
API Level: 9
View Source

SetAnimationElapsedTime(String, Single)

Sets the animation elapsed time.

Declaration
C#
Copy
public void SetAnimationElapsedTime(string animationName, float elapsed)
Parameters
Type Name Description
System.String animationName

The animation name

System.Single elapsed

The elapsed time in seconds

API Level: 9
View Source

SetNodeOpacity(String, Single)

Sets the opacity of given node.

Declaration
C#
Copy
public void SetNodeOpacity(string nodeName, float opacity)
Parameters
Type Name Description
System.String nodeName

The node name

System.Single opacity

The opacity of given node

API Level: 9
View Source

SetNodePosition(String, Position)

Sets the position of given node.

Declaration
C#
Copy
public void SetNodePosition(string nodeName, Position position)
Parameters
Type Name Description
System.String nodeName

The node name

Position position

The position of given node

API Level: 9
View Source

SetNodeRotation(String, Degree)

Sets the rotation of given node.

Declaration
C#
Copy
public void SetNodeRotation(string nodeName, Degree degree)
Parameters
Type Name Description
System.String nodeName

The node name

Degree degree

The degree of given node

API Level: 9
View Source

SetNodeScale(String, Vector2)

Sets the scale of given node.

Declaration
C#
Copy
public void SetNodeScale(string nodeName, Vector2 scale)
Parameters
Type Name Description
System.String nodeName

The node name

Vector2 scale

The scale of given node

API Level: 9
View Source

SetShapeFillColor(String, Color)

Sets the shape fill color of given fill.

Declaration
C#
Copy
public void SetShapeFillColor(string shapeFillName, Color color)
Parameters
Type Name Description
System.String shapeFillName

The shape fill name

Color color

The rgba color

API Level: 9
View Source

SetShapeStrokeColor(String, Color)

Sets the shape stroke color of given stroke.

Declaration
C#
Copy
public void SetShapeStrokeColor(string shapeStrokeName, Color color)
Parameters
Type Name Description
System.String shapeStrokeName

The shape stroke name

Color color

The rgba color

API Level: 9
View Source

Stop()

Stop animation.

Declaration
C#
Copy
public void Stop()
API Level: 9

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable