From: Eunki, Hong Date: Tue, 24 Oct 2023 02:55:19 +0000 (+0900) Subject: Flush action implement for LottieAnimationView X-Git-Tag: accepted/tizen/8.0/unified/20240613.065534~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85434e3e705673f5f10c5edc18085a74da451e09;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Flush action implement for LottieAnimationView Implement Flush action. It will be used when user want to ensure the Lottie property changed applied sequencly. Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.LottieAnimationView.cs b/src/Tizen.NUI/src/internal/Interop/Interop.LottieAnimationView.cs index 89c0a50..f249c1a 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.LottieAnimationView.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.LottieAnimationView.cs @@ -33,7 +33,10 @@ namespace Tizen.NUI public static extern int AnimatedVectorImageVisualActionJumpToGet(); [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_AnimatedVectorImageVisual_Actions_SET_DYNAMIC_PROPERTY_get")] - public static extern int AnimatedVectorImageVisualActionSetDynamicProperty(); + public static extern int AnimatedVectorImageVisualActionSetDynamicPropertyGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_AnimatedVectorImageVisual_Actions_FLUSH_get")] + public static extern int AnimatedVectorImageVisualActionFlushGet(); } } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs b/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs index 91ec912..a4447f2 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs @@ -970,7 +970,8 @@ namespace Tizen.NUI.BaseComponents internal static readonly int ActionJumpTo = Interop.LottieAnimationView.AnimatedVectorImageVisualActionJumpToGet(); // This is used for internal purpose. - internal static readonly int ActionSetDynamicProperty = Interop.LottieAnimationView.AnimatedVectorImageVisualActionSetDynamicProperty(); + internal static readonly int ActionSetDynamicProperty = Interop.LottieAnimationView.AnimatedVectorImageVisualActionSetDynamicPropertyGet(); + internal static readonly int ActionFlush = Interop.LottieAnimationView.AnimatedVectorImageVisualActionFlushGet(); internal class VisualEventSignalArgs : EventArgs { @@ -1110,6 +1111,13 @@ namespace Tizen.NUI.BaseComponents } ret?.Dispose(); } + + internal void FlushLottieMessages() + { + NUILog.Debug($"<[{GetId()}]FLUSH>"); + + Interop.View.DoActionWithEmptyAttributes(this.SwigCPtr, ImageView.Property.IMAGE, ActionFlush); + } #endregion Internal