Class LottieFrameInfo

Definition

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

A class containing frame informations for a LottieAnimationView.

C#
Copy
public class LottieFrameInfo : ICloneable
Inheritance
LottieFrameInfo

Constructors

View Source

LottieFrameInfo(Int32)

Creates a new instance with a still image frame.

Declaration
C#
Copy
public LottieFrameInfo(int stillImageFrame)
Parameters
Type Name Description
Int32 stillImageFrame
View Source

LottieFrameInfo(Int32, Int32)

Creates a new instance with a playing range.

Declaration
C#
Copy
public LottieFrameInfo(int startFrame, int endFrame)
Parameters
Type Name Description
Int32 startFrame
Int32 endFrame

Properties

View Source

EndFrame

The end frame of the lottie animation.

Declaration
C#
Copy
public int EndFrame { get; }
Property Value
Type Description
Int32
View Source

StartFrame

The start frame of the lottie animation.

Declaration
C#
Copy
public int StartFrame { get; }
Property Value
Type Description
Int32

Methods

View Source

Clone()

Declaration
C#
Copy
public object Clone()
Returns
Type Description
Object
View Source

CreateAnimationRange(Int32, Int32)

Create LottieFrameInfo struct with animation range information

Declaration
C#
Copy
public static LottieFrameInfo CreateAnimationRange(int startFrame, int endFrame)
Parameters
Type Name Description
Int32 startFrame
Int32 endFrame
Returns
Type Description
LottieFrameInfo
View Source

CreateStillImage(Int32)

Create LottieFrameInfo struct with still image information

Declaration
C#
Copy
public static LottieFrameInfo CreateStillImage(int stillImageFrame)
Parameters
Type Name Description
Int32 stillImageFrame
Returns
Type Description
LottieFrameInfo
View Source

IsStillImage()

Inhouse API. Whether this LottieFrameInfo represents one frame or more.

Declaration
C#
Copy
public bool IsStillImage()
Returns
Type Description
Boolean
View Source

Show(LottieAnimationView, Boolean)

Inhouse API. Play specified LottieAnimationView with this frame information.

Declaration
C#
Copy
public void Show(LottieAnimationView lottieView, bool noPlay = false)
Parameters
Type Name Description
LottieAnimationView lottieView

The target LottieAnimationView to play.

Boolean noPlay

Whether go direct to the EndFrame. It is false by default.

Operators

View Source

Implicit(Int32 to LottieFrameInfo)

Create a new instance from an int value.

Declaration
C#
Copy
public static implicit operator LottieFrameInfo(int stillImageFrame)
Parameters
Type Name Description
Int32 stillImageFrame
Returns
Type Description
LottieFrameInfo
View Source

Implicit(String to LottieFrameInfo)

Create a new instance from string. Possible input : "0, 10", "10"

Declaration
C#
Copy
public static implicit operator LottieFrameInfo(string pair)
Parameters
Type Name Description
String pair
Returns
Type Description
LottieFrameInfo
View Source

Implicit((Int32, Int32) to LottieFrameInfo)

Create a new instance from a pair notation.

Declaration
C#
Copy
public static implicit operator LottieFrameInfo((int, int) pair)
Parameters
Type Name Description
ValueTuple<Int32, Int32> pair
Returns
Type Description
LottieFrameInfo

Extension Methods