Make AddFrameUpdateCallback with root view
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Window / Window.cs
index 12eff27..3779dfe 100755 (executable)
@@ -2219,6 +2219,19 @@ namespace Tizen.NUI
         }
 
         /// <summary>
+        /// Add FrameUpdateCallback with root view.
+        /// FrameUpdateCallbackInterface can only detach Views under given view.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void AddFrameUpdateCallback(FrameUpdateCallbackInterface frameUpdateCallback, View rootView)
+        {
+            if(rootView != null)
+            {
+                frameUpdateCallback?.AddFrameUpdateCallback(stageCPtr, View.getCPtr(rootView));
+            }
+        }
+
+        /// <summary>
         /// Remove FrameUpdateCallback
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]