[NUI] Add a return value in WebView.SetImePositionAndAlignment.
authorhuayong.xu <huayong.xu@samsung.com>
Tue, 26 Nov 2024 05:15:35 +0000 (13:15 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 26 Nov 2024 05:30:43 +0000 (14:30 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.WebView.cs
src/Tizen.NUI/src/public/WebView/WebView.cs

index 9bf1c03109548acf78b367fd2b2f02e1d4873389..110f99139312ea7a63eb2f98083473d14dd7190c 100755 (executable)
@@ -172,7 +172,8 @@ namespace Tizen.NUI
             public static extern bool StopInspectorServer(global::System.Runtime.InteropServices.HandleRef jarg1);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_SetImePositionAndAlignment")]
-            public static extern void SetImePositionAndAlignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
+            [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
+            public static extern bool SetImePositionAndAlignment(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_SetCursorThemeName")]
             public static extern void SetCursorThemeName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
index 1233d3b07ea65289e30b95ce67c64ac9fe47277f..3f066850948ec1b37c0886babfe8dcab2e92f8ec 100755 (executable)
@@ -2608,11 +2608,13 @@ namespace Tizen.NUI.BaseComponents
         /// </summary>
         /// <param name="position">The position of IME</param>
         /// <param name="alignment">The alignment of IME</param>
+        /// <returns>True if setting successfully, false otherwise</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public void SetImePositionAndAlignment(Vector2 position, ImeAlignment alignment)
+        public bool SetImePositionAndAlignment(Vector2 position, ImeAlignment alignment)
         {
-            Interop.WebView.SetImePositionAndAlignment(SwigCPtr, Vector2.getCPtr(position), (int)alignment);
+            bool result = Interop.WebView.SetImePositionAndAlignment(SwigCPtr, Vector2.getCPtr(position), (int)alignment);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return result;
         }
 
         /// <summary>