From: Shinwoo Kim Date: Wed, 21 Apr 2021 02:32:34 +0000 (+0900) Subject: [NUI][ATSPI] Add Accessibility.SuppressScreenReader() X-Git-Tag: accepted/tizen/unified/20231205.024657~1894 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=773dd8de7edf99f195d80da055d35def29c68c11;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI][ATSPI] Add Accessibility.SuppressScreenReader() --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs index 873f4e2..c1caf8c 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs @@ -32,6 +32,9 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "csharp_dali_accessibility_stop_reading")] public static extern void StopReading(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "csharp_dali_accessibility_supress_screen_reader")] + public static extern bool SuppressScreenReader(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); } } } diff --git a/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs b/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs index 7bccb4c..24ee8ee 100755 --- a/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs +++ b/src/Tizen.NUI/src/public/Accessibility/Accessibility.cs @@ -122,6 +122,19 @@ namespace Tizen.NUI.Accessibility } /// + /// Suppress reading of screen-reader + /// + /// whether to suppress reading of screen-reader + // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + [EditorBrowsable(EditorBrowsableState.Never)] + public bool SuppressScreenReader(bool suppress) + { + bool ret = Interop.Accessibility.SuppressScreenReader(View.getCPtr(dummy), suppress); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// /// Get View that is used to highlight widget. /// // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API)