Change api name Finalize to DestroyContext, to remove build warning 44/157744/4 5.0.0-preview1-00349
authorxb.teng <xb.teng@samsung.com>
Thu, 26 Oct 2017 05:31:23 +0000 (13:31 +0800)
committerhuiyu,eun <huiyu.eun@samsung.com>
Thu, 26 Oct 2017 07:58:15 +0000 (16:58 +0900)
Change-Id: I9004de05f5ba4995959f5c7cf7670198d03a6a08

src/Tizen.NUI/src/public/ImfManager.cs
src/Tizen.NUI/src/public/StyleManager.cs
src/Tizen.NUI/src/public/TTSPlayer.cs

index 03f7961030f8e51a8b54040811d66d27000d7eb0..acfa2507709423be9ab2fcdf1c4e9cd269dbb5b1 100644 (file)
@@ -38,6 +38,20 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
         }
 
+        private static readonly ImfManager instance = ImfManager.Get();
+
+        /// <summary>
+        /// Gets the singleton of the ImfManager object.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        public static ImfManager Instance
+        {
+            get
+            {
+                return instance;
+            }
+        }
+
         /// <summary>
         /// Dispose
         /// </summary>
@@ -696,14 +710,23 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Finalize the IMF.<br/>
+        /// Destroy the context of the IMF.<br/>
         /// </summary>
-        public void Finalize()
+        /// <since_tizen> 5 </since_tizen>
+        public void DestroyContext()
         {
             NDalicManualPINVOKE.ImfManager_Finalize(swigCPtr);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// Please DO NOT use! This will be deprecated, instead please USE Tizen.NUI.ImfManager.Instance.DestroyContext()!
+        [Obsolete("Please DO NOT use! This will be deprecated, instead please USE Tizen.NUI.ImfManager.Instance.DestroyContext()!")]
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void Finalize()
+        {
+            DestroyContext();
+        }
+
         /// <summary>
         /// Retrieves a handle to the instance of the ImfManager.
         /// </summary>
@@ -1848,4 +1871,4 @@ namespace Tizen.NUI
             HardwareKeyboard
         }
     }
-}
\ No newline at end of file
+}
index 85738a4053b82ccd22768cd07e47854982e7e2c7..57f6551b38ae6c9abc13fa68fda20fe8fc306516 100644 (file)
@@ -43,6 +43,20 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
         }
 
+        private static readonly StyleManager instance = StyleManager.Get();
+
+        /// <summary>
+        /// Gets the singleton of the StyleManager object.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        public static StyleManager Instance
+        {
+            get
+            {
+                return instance;
+            }
+        }
+
         /// <summary>
         /// Dispose.
         /// </summary>
@@ -272,4 +286,4 @@ namespace Tizen.NUI
         }
 
     }
-}
\ No newline at end of file
+}
index 7ba747a5bc3d40b38dbbd4c5f9a3282e3be1b467..518e1c30d2d8c23597bf1a5ab63bd6a9efd888d1 100644 (file)
@@ -38,6 +38,20 @@ namespace Tizen.NUI
             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
         }
 
+        private static readonly TTSPlayer instance = TTSPlayer.Get();
+
+        /// <summary>
+        /// Gets the singleton of the TTSPlayer object.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        public static TTSPlayer Instance
+        {
+            get
+            {
+                return instance;
+            }
+        }
+
         /// <summary>
         /// Dispose.
         /// </summary>
@@ -311,4 +325,4 @@ namespace Tizen.NUI
 
     }
 
-}
\ No newline at end of file
+}