[NUI] Add DeleteAccessibilityAttribute
authorhuiyu.eun <huiyu.eun@samsung.com>
Wed, 20 Jan 2021 09:17:12 +0000 (18:17 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Tue, 26 Jan 2021 08:27:40 +0000 (17:27 +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 82ff7a5..ca6dcf3 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 2e192f8..f929646 100755 (executable)
@@ -246,6 +246,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 90efec2..1300858 100755 (executable)
@@ -967,6 +967,7 @@ namespace Tizen.NUI.Components
 
             if (type == DisposeTypes.Explicit)
             {
+                AccessibilityManager.Instance.DeleteAccessibilityAttribute(this);
                 StopOverShootingShadowAnimation();
                 StopScroll();
 
index 7deba36..91ce4a0 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 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 GetAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
 
index 4295847..6de9279 100755 (executable)
@@ -486,6 +486,18 @@ namespace Tizen.NUI.Accessibility
             Interop.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.