Class AlphaFunctionSpringData

    Definition

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

    Enumeration for predefined spring animation types. This presets are based on typical spring behavior tuned for different motion effects.

    public class AlphaFunctionSpringData
    Inheritance
    object
    AlphaFunctionSpringData

    Constructors

    View Source

    AlphaFunctionSpringData(float, float, float)

    Declaration
    public AlphaFunctionSpringData(float stiffness, float damping, float mass)
    Parameters
    Type Name Description
    float stiffness
    float damping
    float mass

    Properties

    View Source

    Damping

    Damping coefficient. Controls oscillation and settling. Minimum value is 0.1. Default Value is 1.0.

    Declaration
    public float Damping { get; set; }
    Property Value
    Type Description
    float
    View Source

    Mass

    Mass of the object. Affects inertia and the duration of the motion. Minimum value is 0.1. Default Value is 1.0.

    Declaration
    public float Mass { get; set; }
    Property Value
    Type Description
    float
    View Source

    Stiffness

    Spring stiffness(Hooke's constant). Higher values make the spring snap back faster. Minimum value is 0.1. Default Value is 1.0.

    Declaration
    public float Stiffness { get; set; }
    Property Value
    Type Description
    float

    Methods

    View Source

    GetDuration()

    Returns the time in milliseconds it takes for a Spring Animation to converge based on the AlphaFunctionSpringData. The maximum value for the returned duration is 100000 milliseconds(100 seconds). Since this value is calculated in an incremental manner, it may take longer if used frequently.

    Declaration
    public int GetDuration()
    Returns
    Type Description
    int

    Expected duration for input springData.

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX