From: xb.teng Date: Thu, 26 Oct 2017 05:31:23 +0000 (+0800) Subject: [NUI] Change api name Finalize to DestroyContext, to remove build warning X-Git-Tag: 4.0.1-preview1-00018~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F159353%2F1;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Change api name Finalize to DestroyContext, to remove build warning Conflicts: src/Tizen.NUI/src/public/ImfManager.cs Change-Id: I9004de05f5ba4995959f5c7cf7670198d03a6a08 --- diff --git a/src/Tizen.NUI/src/public/ImfManager.cs b/src/Tizen.NUI/src/public/ImfManager.cs old mode 100644 new mode 100755 index 91fb3f4..cc0adf4 --- a/src/Tizen.NUI/src/public/ImfManager.cs +++ b/src/Tizen.NUI/src/public/ImfManager.cs @@ -39,6 +39,22 @@ namespace Tizen.NUI return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } + private static readonly ImfManager instance = ImfManager.Get(); + + /// + /// Gets the singleton of the ImfManager object. + /// + /// 5 + /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static ImfManager Instance + { + get + { + return instance; + } + } + /// /// Dispose /// @@ -706,15 +722,25 @@ namespace Tizen.NUI } /// - /// Finalize the IMF.
+ /// Destroy the context of the IMF.
///
- /// 4 - public void Finalize() + /// 5 + /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + 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(); + } + /// /// Retrieves a handle to the instance of the ImfManager. /// @@ -1894,4 +1920,4 @@ namespace Tizen.NUI HardwareKeyboard } } -} \ No newline at end of file +} diff --git a/src/Tizen.NUI/src/public/StyleManager.cs b/src/Tizen.NUI/src/public/StyleManager.cs old mode 100644 new mode 100755 index 3a8af42..831160a --- a/src/Tizen.NUI/src/public/StyleManager.cs +++ b/src/Tizen.NUI/src/public/StyleManager.cs @@ -44,6 +44,22 @@ 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(); + + /// + /// Gets the singleton of the StyleManager object. + /// + /// 5 + /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StyleManager Instance + { + get + { + return instance; + } + } + /// /// Dispose. /// @@ -275,4 +291,4 @@ namespace Tizen.NUI } } -} \ No newline at end of file +} diff --git a/src/Tizen.NUI/src/public/TTSPlayer.cs b/src/Tizen.NUI/src/public/TTSPlayer.cs old mode 100644 new mode 100755 index 1496196..de82248 --- a/src/Tizen.NUI/src/public/TTSPlayer.cs +++ b/src/Tizen.NUI/src/public/TTSPlayer.cs @@ -39,6 +39,22 @@ 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(); + + /// + /// Gets the singleton of the TTSPlayer object. + /// + /// 5 + /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static TTSPlayer Instance + { + get + { + return instance; + } + } + /// /// Dispose. /// @@ -315,4 +331,4 @@ namespace Tizen.NUI } -} \ No newline at end of file +}