Class AnimatedImageView

    Definition

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

    AnimatedImageView is a class for displaying Animated-GIF and Image-Array

    public class AnimatedImageView : ImageView, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ImageView
    AnimatedImageView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    AnimatedImageView()

    Construct AnimatedImageView

    Declaration
    public AnimatedImageView()

    Fields

    View Source

    BatchSizeProperty

    BatchSizeProperty

    Declaration
    public static readonly BindableProperty BatchSizeProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    CacheSizeProperty

    CacheSizeProperty

    Declaration
    public static readonly BindableProperty CacheSizeProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    CurrentFrameProperty

    CurrentFrameProperty

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

    FrameDelayProperty

    FrameDelayProperty

    Declaration
    public static readonly BindableProperty FrameDelayProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    LoopCountProperty

    LoopCountProperty

    Declaration
    public static readonly BindableProperty LoopCountProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    StopBehaviorProperty

    StopBehaviorProperty

    Declaration
    public static readonly BindableProperty StopBehaviorProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    BatchSize

    Defines the batch size for pre-loading images in the Image-Array animation. number of images to pre-load before starting to play. Default value: 1.

    Declaration
    public int BatchSize { get; set; }
    Property Value
    Type Description
    int
    View Source

    CacheSize

    Defines the cache size for loading images in the Image-Array animation. number of images to keep cached ahead during playback. Default value: 1.

    Declaration
    public int CacheSize { get; set; }
    Property Value
    Type Description
    int
    Remarks

    cacheSize should be >= batchSize. If it isn't, then the cache will automatically be changed to batchSize. because of the defaults, it is expected that the application developer tune the batch and cache sizes to their particular use case.

    View Source

    CurrentFrame

    Set or get the current frame. When setting a specific frame, it is displayed as a still image.

    Declaration
    public int CurrentFrame { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Gets the value set by a user. If the setting value is out-ranged, it is reset as a minimum frame or a maximum frame.

    View Source

    FrameDelay

    The number of milliseconds between each frame in the Image-Array animation. The number of milliseconds between each frame.

    Declaration
    public int FrameDelay { get; set; }
    Property Value
    Type Description
    int
    Remarks

    This is only used when URLs(multiple string) are provided.

    View Source

    FrameSpeedFactor

    Specifies a speed factor for the animated image frame.

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

    The speed factor is a multiplier of the normal velocity of the animation. Values between [0,1] will slow down the animation and values above one will speed up the animation.

    The range of this value is clamped between [0.01f ~ 100.0f].

    Inhouse API. The default is 1.0f.

    View Source

    LoopCount

    The number of looping.

    Declaration
    public int LoopCount { get; set; }
    Property Value
    Type Description
    int
    View Source

    StopBehavior

    Sets or gets the stop behavior.

    Declaration
    public AnimatedImageView.StopBehaviorType StopBehavior { get; set; }
    Property Value
    Type Description
    AnimatedImageView.StopBehaviorType
    View Source

    TotalFrame

    Get the number of total frames

    Declaration
    public int TotalFrame { get; }
    Property Value
    Type Description
    int
    View Source

    URLs

    Image URL list for Image-Array

    Declaration
    public List<string> URLs { get; }
    Property Value
    Type Description
    List<><string>

    Methods

    View Source

    Dispose(DisposeTypes)

    You can override it to clean-up your own resources

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

    DisposeTypes

    Overrides
    ImageView.Dispose(DisposeTypes)
    View Source

    MergeCachedImageVisualProperty(PropertyMap)

    Update NUI cached animated image visual property map by inputed property map. And call base.MergeCachedImageVisualProperty()

    Declaration
    protected override void MergeCachedImageVisualProperty(PropertyMap map)
    Parameters
    Type Name Description
    PropertyMap map
    Overrides
    ImageView.MergeCachedImageVisualProperty(PropertyMap)
    Remarks

    For performance issue, we will collect only "cachedAnimatedImagePropertyKeyList" hold in this class.

    View Source

    SetValues()

    To make the properies be set. This should be called after the properties are set.

    Declaration
    public void SetValues()
    View Source

    UpdateImage()

    Update animated-image-relative properties synchronously. After call this API, All image properties updated.

    Declaration
    protected override void UpdateImage()
    Overrides
    ImageView.UpdateImage()

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX