Class RiveAnimationView
Definition
- Assembly:
- Tizen.NUI.Extension.dll
RiveAnimationView renders an animated vector image (Rive file).
C#Copypublic class RiveAnimationView : View, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.ElementRiveAnimationView
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic RiveAnimationView(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The rive resource URL |
Methods
Declaration
C#Copypublic void EnableAnimation(string animationName, bool on)
Parameters
Type | Name | Description |
---|---|---|
string | animationName | The animation to enable |
bool | on | The enable state of given animation |
Declaration
C#Copypublic void Pause()
Declaration
C#Copypublic void Play()
Declaration
C#Copypublic void SetAnimationElapsedTime(string animationName, float elapsed)
Parameters
Type | Name | Description |
---|---|---|
string | animationName | The animation name |
float | elapsed | The elapsed time in seconds |
Declaration
C#Copypublic void SetNodeOpacity(string nodeName, float opacity)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
float | opacity | The opacity of given node |
Declaration
C#Copypublic void SetNodePosition(string nodeName, Position position)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
Position | position | The position of given node |
Declaration
C#Copypublic void SetNodeRotation(string nodeName, Degree degree)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
Degree | degree | The degree of given node |
Declaration
C#Copypublic void SetNodeScale(string nodeName, Vector2 scale)
Parameters
Type | Name | Description |
---|---|---|
string | nodeName | The node name |
Vector2 | scale | The scale of given node |
Declaration
C#Copypublic void SetShapeFillColor(string shapeFillName, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | shapeFillName | The shape fill name |
Color | color | The rgba color |
Declaration
C#Copypublic void SetShapeStrokeColor(string shapeStrokeName, Color color)
Parameters
Type | Name | Description |
---|---|---|
string | shapeStrokeName | The shape stroke name |
Color | color | The rgba color |
Declaration
C#Copypublic void Stop()
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable