From 85434e3e705673f5f10c5edc18085a74da451e09 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Tue, 24 Oct 2023 11:55:19 +0900 Subject: [PATCH] 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 --- .../src/internal/Interop/Interop.LottieAnimationView.cs | 5 ++++- src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) 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 -- 2.7.4