Class RiveAnimationView
Definition
- Assembly:
- Tizen.NUI.Extension.dll
RiveAnimationView renders an animated vector image (Rive file).
public class RiveAnimationView : View, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.ElementRiveAnimationView
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceRiveAnimationView(string)
RiveAnimationView constructor.
Declaration
public RiveAnimationView(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The rive resource URL |
Methods
View SourceEnableAnimation(string, bool)
Enables or disables the given animation.
Declaration
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 |
Pause()
Pause animation.
Declaration
public void Pause()
Play()
Play animation.
Declaration
public void Play()
SetAnimationElapsedTime(string, float)
Sets the animation elapsed time.
Declaration
public void SetAnimationElapsedTime(string animationName, float elapsed)
Parameters
Type | Name | Description |
---|---|---|
string | animationName | The animation name |
float | elapsed | The elapsed time in seconds |
SetNodeOpacity(string, float)
Sets the opacity of given node.
Declaration
public void SetNodeOpacity(string nodeName, float opacity)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
float | opacity | The opacity of given node |
SetNodePosition(string, Position)
Sets the position of given node.
Declaration
public void SetNodePosition(string nodeName, Position position)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
Position | position | The position of given node |
SetNodeRotation(string, Degree)
Sets the rotation of given node.
Declaration
public void SetNodeRotation(string nodeName, Degree degree)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
Degree | degree | The degree of given node |
SetNodeScale(string, Vector2)
Sets the scale of given node.
Declaration
public void SetNodeScale(string nodeName, Vector2 scale)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
Vector2 | scale | The scale of given node |
SetShapeFillColor(string, Color)
Sets the shape fill color of given fill.
Declaration
public void SetShapeFillColor(string shapeFillName, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | shapeFillName | The shape fill name |
Color | color | The rgba color |
SetShapeStrokeColor(string, Color)
Sets the shape stroke color of given stroke.
Declaration
public void SetShapeStrokeColor(string shapeStrokeName, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | shapeStrokeName | The shape stroke name |
Color | color | The rgba color |
Stop()
Stop animation.
Declaration
public void Stop()