From 773dd8de7edf99f195d80da055d35def29c68c11 Mon Sep 17 00:00:00 2001 From: Shinwoo Kim Date: Wed, 21 Apr 2021 11:32:34 +0900 Subject: [PATCH] [NUI][ATSPI] Add Accessibility.SuppressScreenReader() --- src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs | 3 +++ src/Tizen.NUI/src/public/Accessibility/Accessibility.cs | 13 +++++++++++++ 2 files changed, 16 insertions(+) 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) -- 2.7.4