[NUI] Add DeleteAccessibilityAttribute
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 20 Jan 2021 09:17:12 +0000 (18:17 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Thu, 21 Jan 2021 04:46:12 +0000 (13:46 +0900)
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI.Components/Controls/Button.Internal.cs
src/Tizen.NUI.Components/Controls/Loading.cs
src/Tizen.NUI.Components/Controls/ScrollableBase.cs
src/Tizen.NUI/src/internal/Interop/Interop.AccessibilityManager.cs
src/Tizen.NUI/src/public/Accessibility/AccessibilityManager.cs

index 82ff7a501732190fe0a98014d65c0a30a5876c18..ca6dcf39a454f055f224d7a48ff8f5b3fdf72c5e 100755 (executable)
@@ -362,6 +362,7 @@ namespace Tizen.NUI.Components
 
             if (type == DisposeTypes.Explicit)
             {
+                AccessibilityManager.Instance.DeleteAccessibilityAttribute(this);
                 Extension?.OnDispose(this);
 
                 if (buttonIcon != null)
index 10965172731ba85e7d1d0fdc2b2b85ea6befae05..55461b731adc7200f71f36e4fd2630bafa97cf47 100755 (executable)
@@ -218,6 +218,7 @@ namespace Tizen.NUI.Components
                 //Called by User
                 //Release your own managed resources here.
                 //You should release all of your own disposable objects here.
+                AccessibilityManager.Instance.DeleteAccessibilityAttribute(this);
                 RemoveVisual("loadingImageVisual");
             }
 
index d57333a02e92a772bbc050b449e204dba39ad4c0..e9e1882e0e9a340bc2feddaf42c0fa5823d1d6e7 100755 (executable)
@@ -1009,6 +1009,7 @@ namespace Tizen.NUI.Components
 
             if (type == DisposeTypes.Explicit)
             {
+                AccessibilityManager.Instance.DeleteAccessibilityAttribute(this);
                 StopVerticalShadowAnimation();
                 StopScroll();
 
index 70db3b1f09290b1a81c914acaf882eaf6a5afde8..b796a36424dacf0794be4c6ec71fe866aafb84e9 100755 (executable)
@@ -20,6 +20,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetAccessibilityAttribute")]
             public static extern void AccessibilityManager_SetAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, string jarg4);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_DeleteAccessibilityAttribute")]
+            public static extern void AccessibilityManager_DeleteAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetAccessibilityAttribute")]
             public static extern string AccessibilityManager_GetAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
 
index 43bef1862455d279989a0ab7c4672c38fb382076..5e372832fe1795f74b6cfed7d0fbb456065d4425 100755 (executable)
@@ -486,6 +486,18 @@ namespace Tizen.NUI.Accessibility
             Interop.AccessibilityManager.AccessibilityManager_SetAccessibilityAttribute(swigCPtr, View.getCPtr(view), (int)type, text);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
+        
+        /// <summary>
+        /// Delete the information of the specified view's accessibility attribute.
+        /// </summary>
+        /// <param name="view"> The view to delete</param>
+        /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void DeleteAccessibilityAttribute(View view)
+        {
+            Interop.AccessibilityManager.AccessibilityManager_DeleteAccessibilityAttribute(SwigCPtr, View.getCPtr(view));
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
 
         /// <summary>
         /// Gets the text of the specified view's accessibility attribute.