Class LottieSwitchStyle

    Definition

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

    LottieSwitchStyle implements ILottieButtonStyle interface to support extended ButtonStyle using Lottie.

    public class LottieSwitchStyle : SwitchStyle, IDynamicResourceHandler, IDisposable, ILottieButtonStyle
    Inheritance
    object
    BindableObject
    ViewStyle
    ControlStyle
    ButtonStyle
    SwitchStyle
    LottieSwitchStyle
    Implements
    IDynamicResourceHandler
    IDisposable
    ILottieButtonStyle

    Constructors

    View Source

    LottieSwitchStyle()

    Create new instance of a LottieButtonStyle.

    Declaration
    public LottieSwitchStyle()
    View Source

    LottieSwitchStyle(LottieSwitchStyle)

    Copy constructor.

    Declaration
    public LottieSwitchStyle(LottieSwitchStyle style)
    Parameters
    Type Name Description
    LottieSwitchStyle style

    Properties

    View Source

    LottieUrl

    Get/Set Lottie resource url.

    Declaration
    public string LottieUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    PlayRange

    Get/Set LottieFrameInfo for playing on various states of attached Button.

    Declaration
    public Selector<LottieFrameInfo> PlayRange { get; set; }
    Property Value
    Type Description
    Selector<LottieFrameInfo>

    Methods

    View Source

    CopyFrom(BindableObject)

    Copy properties of other ViewStyle to this.

    Declaration
    public override void CopyFrom(BindableObject bindableObject)
    Parameters
    Type Name Description
    BindableObject bindableObject
    Overrides
    SwitchStyle.CopyFrom(BindableObject)
    View Source

    CreateExtension()

    Create corresponding ButtonExtension. This is to be called by a Button. You may override this function to customize button's behavior.

    Declaration
    public override ButtonExtension CreateExtension()
    Returns
    Type Description
    ButtonExtension
    Overrides
    SwitchStyle.CreateExtension()

    Implements

    IDynamicResourceHandler
    IDisposable
    ILottieButtonStyle

    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