Class RiveAnimationView

    Definition

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

    RiveAnimationView renders an animated vector image (Rive file).

    public class RiveAnimationView : View, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Animatable
    Container
    View
    RiveAnimationView
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    RiveAnimationView(string)

    RiveAnimationView constructor.

    Declaration
    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
    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
    public void Pause()
    View Source

    Play()

    Play animation.

    Declaration
    public void Play()
    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    Stop()

    Stop animation.

    Declaration
    public void Stop()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX