Class AnimatedVectorImageView

Definition

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

AnimatedVectorImageView is a class for displaying a vector resource.

C#
Copy
public class AnimatedVectorImageView : LottieAnimationView, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

AnimatedVectorImageView()

Construct VectorAnimationView.

Declaration
C#
Copy
public AnimatedVectorImageView()
View Source

AnimatedVectorImageView(Single)

Construct VectorAnimationView.

Declaration
C#
Copy
public AnimatedVectorImageView(float scale)
Parameters
Type Name Description
Single scale

Set scaling factor for Vector Animation, while creating.

Fields

View Source

CurrentFrameProperty

CurrentFrameProperty

Declaration
C#
Copy
public static readonly BindableProperty CurrentFrameProperty
Field Value
Type Description
BindableProperty
View Source

RepeatCountProperty

RepeatCountProperty

Declaration
C#
Copy
public static readonly BindableProperty RepeatCountProperty
Field Value
Type Description
BindableProperty
View Source

RepeatModeProperty

RepeatModeProperty

Declaration
C#
Copy
public static readonly BindableProperty RepeatModeProperty
Field Value
Type Description
BindableProperty
View Source

ResourceUrlProperty

ResourceUrlProperty

Declaration
C#
Copy
public static readonly BindableProperty ResourceUrlProperty
Field Value
Type Description
BindableProperty
View Source

ResourceURLProperty

ResourceURLProperty

Declaration
C#
Copy
public static readonly BindableProperty ResourceURLProperty
Field Value
Type Description
BindableProperty

Properties

View Source

AnimationState

Get state of animation.

Declaration
C#
Copy
public AnimatedVectorImageView.AnimationStates AnimationState { get; }
Property Value
Type Description
AnimatedVectorImageView.AnimationStates
View Source

CurrentFrame

CurrentFrame of animation.

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

Returns user set value for the current frame. Cannot provide actual playing current frame.

View Source

RepeatCount

RepeatCount of animation. The repeat count is 0 by default. If the RepeatCount is 0, the animation is never repeated. If the RepeatCount is greater than 0, the repeat mode will be taken into account. If RepeatCount is -1, animation is infinite loops.

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

RepeatMode

RepeatMode of animation.

Declaration
C#
Copy
public AnimatedVectorImageView.RepeatModes RepeatMode { get; set; }
Property Value
Type Description
AnimatedVectorImageView.RepeatModes
View Source

ResourceUrl

Set Resource URL

Declaration
C#
Copy
public string ResourceUrl { get; set; }
Property Value
Type Description
String
View Source

ResourceURL

Set Resource URL

Declaration
C#
Copy
public string ResourceURL { get; set; }
Property Value
Type Description
String
View Source

TotalFrame

TotalFrame of animation. If resouce is still not be loaded, or invalid resource, the value is 0.

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

Methods

View Source

Dispose(DisposeTypes)

You can override it to clean-up your own resources

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

DisposeTypes

Overrides
View Source

Pause()

Pause Animation.

Declaration
C#
Copy
public void Pause()
View Source

Play()

Play Animation.

Declaration
C#
Copy
public void Play()
View Source

SetMinAndMaxFrame(Int32, Int32)

Set minimum frame and maximum frame

Declaration
C#
Copy
public void SetMinAndMaxFrame(int minFrame, int maxFrame)
Parameters
Type Name Description
Int32 minFrame

minimum frame.

Int32 maxFrame

maximum frame.

View Source

SetMinAndMaxFrameByMarker(String, String)

Set minimum frame and maximum frame by marker. Animation will play between the start frame and the end frame of the marker if one marker is specified. Or animation will play between the start frame of the first marker and the end frame of the second marker if two markers are specified.

Declaration
C#
Copy
public void SetMinAndMaxFrameByMarker(string marker1, string marker2 = null)
Parameters
Type Name Description
String marker1

First marker

String marker2

Second marker

Remarks

If we use invaliad markers, or we load image asynchronous and load is not finished yet, CurrentFrame might not be matched with real value.

View Source

SetMinMaxFrame(Int32, Int32)

SetMinMaxFrame(int startFrame, int endFrame)

Declaration
C#
Copy
public void SetMinMaxFrame(int minFrame, int maxFrame)
Parameters
Type Name Description
Int32 minFrame
Int32 maxFrame
View Source

SetMinMaxFrameByMarker(String, String)

A marker has its start frame and end frame. Animation will play between the start frame and the end frame of the marker if one marker is specified. Or animation will play between the start frame of the first marker and the end frame of the second marker if two markers are specified.

Declaration
C#
Copy
public void SetMinMaxFrameByMarker(string marker1, string marker2 = null)
Parameters
Type Name Description
String marker1

First marker

String marker2

Second marker

View Source

Stop(AnimatedVectorImageView.EndActions)

Stop Animation.

Declaration
C#
Copy
public void Stop(AnimatedVectorImageView.EndActions endAction = default(AnimatedVectorImageView.EndActions))
Parameters
Type Name Description
AnimatedVectorImageView.EndActions endAction

Defines, what should be behaviour after cancel operation End action is Cancel, Animation Stops at the Current Frame. End action is Discard, Animation Stops at the Min Frame End action is StopFinal, Animation Stops at the Max Frame

Implements

Extension Methods