Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
AnimatedVectorImageView is a class for displaying a vector resource.
public class AnimatedVectorImageView : LottieAnimationView, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
View Source
AnimatedVectorImageView()
Construct VectorAnimationView.
Declaration
public AnimatedVectorImageView()
View Source
AnimatedVectorImageView(Single)
Construct VectorAnimationView.
Declaration
public AnimatedVectorImageView(float scale)
Parameters
Type |
Name |
Description |
Single |
scale |
Set scaling factor for Vector Animation, while creating.
|
Fields
Declaration
public static readonly BindableProperty CurrentFrameProperty
Field Value
Declaration
public static readonly BindableProperty RepeatCountProperty
Field Value
Declaration
public static readonly BindableProperty RepeatModeProperty
Field Value
Declaration
public static readonly BindableProperty ResourceUrlProperty
Field Value
Declaration
public static readonly BindableProperty ResourceURLProperty
Field Value
Properties
Declaration
public AnimatedVectorImageView.AnimationStates AnimationState { get; }
Property Value
Declaration
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
public int RepeatCount { get; set; }
Property Value
Declaration
public AnimatedVectorImageView.RepeatModes RepeatMode { get; set; }
Property Value
Declaration
public string ResourceUrl { get; set; }
Property Value
Declaration
public string ResourceURL { get; set; }
Property Value
View Source
TotalFrame
TotalFrame of animation.
If resouce is still not be loaded, or invalid resource, the value is 0.
Declaration
public int TotalFrame { get; }
Property Value
Methods
View Source
Dispose(DisposeTypes)
You can override it to clean-up your own resources
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
Declaration
Declaration
View Source
SetMinAndMaxFrame(Int32, Int32)
Set minimum frame and maximum frame
Declaration
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
public void SetMinAndMaxFrameByMarker(string marker1, string marker2 = null)
Parameters
Type |
Name |
Description |
String |
marker1 |
First marker
|
String |
marker2 |
Second marker
|
Remarks
View Source
SetMinMaxFrame(Int32, Int32)
SetMinMaxFrame(int startFrame, int endFrame)
Declaration
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
public void SetMinMaxFrameByMarker(string marker1, string marker2 = null)
Parameters
Type |
Name |
Description |
String |
marker1 |
First marker
|
String |
marker2 |
Second marker
|
Declaration
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