Class RiveAnimationView
Definition
- Namespace:
- Tizen.NUI.Extension
- Assembly:
- Tizen.NUI.Extension.dll
- API Level:
- 9
RiveAnimationView renders an animated vector image (Rive file).
C#Copypublic class RiveAnimationView : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic RiveAnimationView(string url)
Parameters
Type | Name | Description |
---|---|---|
String | url | The rive resource URL |
API Level: 9
Methods
Declaration
C#Copypublic void EnableAnimation(string animationName, bool on)
Parameters
Type | Name | Description |
---|---|---|
String | animationName | The animation to enable |
Boolean | on | The enable state of given animation |
API Level: 9
Declaration
C#Copypublic void Pause()
API Level: 9
Declaration
C#Copypublic void Play()
API Level: 9
Declaration
C#Copypublic void SetAnimationElapsedTime(string animationName, float elapsed)
Parameters
Type | Name | Description |
---|---|---|
String | animationName | The animation name |
Single | elapsed | The elapsed time in seconds |
API Level: 9
Declaration
C#Copypublic void SetNodeOpacity(string nodeName, float opacity)
Parameters
Type | Name | Description |
---|---|---|
String | nodeName | The node name |
Single | opacity | The opacity of given node |
API Level: 9
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 |
API Level: 9
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 |
API Level: 9
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 |
API Level: 9
Declaration
C#Copypublic void SetShapeFillColor(string shapeFillName, Color color)
Parameters
Type | Name | Description |
---|---|---|
String | shapeFillName | The shape fill name |
Color | color | The rgba color |
API Level: 9
Declaration
C#Copypublic void SetShapeStrokeColor(string shapeStrokeName, Color color)
Parameters
Type | Name | Description |
---|---|---|
String | shapeStrokeName | The shape stroke name |
Color | color | The rgba color |
API Level: 9
Declaration
C#Copypublic void Stop()