Class RiveAnimationView

Definition

Namespace:
Tizen.NUI.Extension
Assembly:
Tizen.NUI.Extension.dll

RiveAnimationView renders an animated vector image (Rive file).

C#
Copy
public class RiveAnimationView : View, INotifyPropertyChanged, IDisposable
Inheritance
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
string url

The rive resource URL

Methods

View Source

EnableAnimation(string, bool)

Enables or disables the given animation.

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

The animation to enable

bool on

The enable state of given animation

View Source

Pause()

Pause animation.

Declaration
C#
Copy
public void Pause()
View Source

Play()

Play animation.

Declaration
C#
Copy
public void Play()
View Source

SetAnimationElapsedTime(string, float)

Sets the animation elapsed time.

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

The animation name

float elapsed

The elapsed time in seconds

View Source

SetNodeOpacity(string, float)

Sets the opacity of given node.

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

The node name

float opacity

The opacity of given node

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
string nodeName

The node name

Position position

The position of given node

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
string nodeName

The node name

Degree degree

The degree of given node

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
string nodeName

The node name

Vector2 scale

The scale of given node

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
string shapeFillName

The shape fill name

Color color

The rgba color

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
string shapeStrokeName

The shape stroke name

Color color

The rgba color

View Source

Stop()

Stop animation.

Declaration
C#
Copy
public void Stop()

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable