[NUI] RiveAnimationView: Add SetAnimationElapsedTime API
authorTaehyub Kim <taehyub.kim@samsung.com>
Thu, 5 Aug 2021 08:47:28 +0000 (01:47 -0700)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 10 Aug 2021 09:08:13 +0000 (18:08 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.RiveAnimationView.cs
src/Tizen.NUI/src/public/BaseComponents/RiveAnimationView.cs

index 218697a..5c85cdf 100755 (executable)
@@ -53,6 +53,9 @@ namespace Tizen.NUI
             
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_StopAnimation")]
             public static extern void Stop(global::System.Runtime.InteropServices.HandleRef handle);
+
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RiveAnimationView_SetAnimationElapsedTime")]
+            public static extern void SetAnimationElapsedTime(global::System.Runtime.InteropServices.HandleRef handle, string animationName, float elapsed);
         }
     }
 }
index 4c22f51..1a33a9a 100755 (executable)
@@ -160,5 +160,16 @@ namespace Tizen.NUI.BaseComponents
                  throw new ArgumentNullException(nameof(position));
             Interop.RiveAnimationView.SetNodePosition(SwigCPtr, nodeName, position.SwigCPtr);
         }
+
+        /// <summary>
+        /// Sets the animation elapsed time.
+        /// </summary>
+        /// <param name="animationName">The animation name</param>
+        /// <param name="elapsed">The elapsed time</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void SetAnimationElapsedTime(string animationName, float elapsed)
+        {
+            Interop.RiveAnimationView.SetAnimationElapsedTime(SwigCPtr, animationName, elapsed);
+        }
     }
 }