[NUI] Get Lottie ActionId of SetDynamicProperty
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Jul 2023 01:05:20 +0000 (10:05 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Tue, 25 Jul 2023 08:09:22 +0000 (17:09 +0900)
Since we change the value of SetDynamicProperty value in dali side,
we need to get correct value from dali.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.LottieAnimationView.cs
src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs

index 09c5f39..89c0a50 100755 (executable)
@@ -31,6 +31,9 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_AnimatedVectorImageVisual_Actions_JUMP_TO_get")]
             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();
         }
     }
 }
index 6d5894d..31d8826 100755 (executable)
@@ -453,7 +453,7 @@ namespace Tizen.NUI.BaseComponents
 
         // This is used for internal purpose. hidden API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        protected int SetDynamicProperty => ActionJumpTo + 1;
+        protected int ActionSetDynamicProperty { get; set; } = Interop.LottieAnimationView.AnimatedVectorImageVisualActionSetDynamicProperty();
         #endregion Property
 
 
@@ -662,7 +662,7 @@ namespace Tizen.NUI.BaseComponents
             weakReferencesOfLottie?.Add(dynamicPropertyCallbackId, new WeakReference<LottieAnimationView>(this));
             InternalSavedDynamicPropertyCallbacks?.Add(dynamicPropertyCallbackId, info.Callback);
 
-            Interop.View.DoActionExtension(SwigCPtr, ImageView.Property.IMAGE, SetDynamicProperty, dynamicPropertyCallbackId, info.KeyPath, (int)info.Property, Marshal.GetFunctionPointerForDelegate<System.Delegate>(rootCallback));
+            Interop.View.DoActionExtension(SwigCPtr, ImageView.Property.IMAGE, ActionSetDynamicProperty, dynamicPropertyCallbackId, info.KeyPath, (int)info.Property, Marshal.GetFunctionPointerForDelegate<System.Delegate>(rootCallback));
 
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }