- `AccessibilityManager` hasn't been used anymore after Tizen 7.0 version.
- Now, all the legacy codes of AccessibilityManager should be removed
in order to prevent the confusion.
- All Accessibility APIs are not public ones because they have never done ACR before,
and that's why we can remove the codes like this.
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
using System.Diagnostics;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Components.Extension;
-using Tizen.NUI.Accessibility; // To use AccessibilityManager
namespace Tizen.NUI.Components
{
AccessibilityHighlightable = true;
EnableControlStatePropagation = true;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Button");
-
buttonText = CreateText();
buttonIcon = CreateIcon();
LayoutItems();
using System.Diagnostics;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Binding;
-using Tizen.NUI.Accessibility;
namespace Tizen.NUI.Components
{
AccessibilityRole = Role.ProgressBar;
EnsureLottieView(lottieResource);
-
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Loading");
}
/// <inheritdoc/>
using System;
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Accessibility;
namespace Tizen.NUI.Components
{
// Tizen.Log.Error("IconUrl only can set Icon is ImageView");
return;
}
- (Icon as ImageView).ResourceUrl = value;
+ (Icon as ImageView).ResourceUrl = value;
}
}
*/
internal set
{
itemLabel = value;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Label, itemLabel.Text);
}
}
using System;
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Accessibility; // To use AccessibilityManager
namespace Tizen.NUI.Components
{
Layout = new AbsoluteLayout();
UpdateState();
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "ViewItem");
-
AccessibilityRole = Role.ListItem;
AccessibilityHighlightable = true;
}
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
-using Tizen.NUI.Accessibility;
namespace Tizen.NUI.Components
{
WheelEvent += OnWheelEvent;
- AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "ScrollableBase");
-
SetKeyboardNavigationSupport(true);
}
base.Remove(view);
}
- internal override bool OnAccessibilityPan(PanGesture gestures)
- {
- if (SnapToPage && scrollAnimation != null && scrollAnimation.State == Animation.States.Playing)
- {
- return false;
- }
-
- OnPanGesture(gestures);
- return true;
- }
-
private float CustomScrollAlphaFunction(float progress)
{
if (panAnimationDelta == 0)
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-using Tizen.NUI.Accessibility;
-
-namespace Tizen.NUI
-{
- internal class AccessibilityActionSignal : Disposable
- {
- internal AccessibilityActionSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
- {
- }
-
- protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
- {
- Interop.AccessibilityManager.DeleteAccessibilityActionSignal(swigCPtr);
- }
-
- public bool Empty()
- {
- bool ret = Interop.AccessibilityManager.AccessibilityActionSignalEmpty(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public uint GetConnectionCount()
- {
- uint ret = Interop.AccessibilityManager.AccessibilityActionSignalGetConnectionCount(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void Connect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- Interop.AccessibilityManager.AccessibilityActionSignalConnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- public void Disconnect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- Interop.AccessibilityManager.AccessibilityActionSignalDisconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- public bool Emit(AccessibilityManager arg)
- {
- bool ret = Interop.AccessibilityManager.AccessibilityActionSignalEmit(SwigCPtr, AccessibilityManager.getCPtr(arg));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public AccessibilityActionSignal() : this(Interop.AccessibilityManager.NewAccessibilityActionSignal(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-namespace Tizen.NUI
-{
- using Tizen.NUI.BaseComponents;
- using Tizen.NUI.Accessibility;
- internal class AccessibilityFocusOvershotSignal : Disposable
- {
-
- internal AccessibilityFocusOvershotSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
- {
- }
-
- protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
- {
- Interop.AccessibilityManager.DeleteAccessibilityFocusOvershotSignal(swigCPtr);
- }
-
- public bool Empty()
- {
- bool ret = Interop.AccessibilityManager.AccessibilityFocusOvershotSignalEmpty(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public uint GetConnectionCount()
- {
- uint ret = Interop.AccessibilityManager.AccessibilityFocusOvershotSignalGetConnectionCount(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void Connect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- Interop.AccessibilityManager.AccessibilityFocusOvershotSignalConnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- public void Disconnect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- Interop.AccessibilityManager.AccessibilityFocusOvershotSignalDisconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- public void Emit(View arg1, AccessibilityManager.FocusOvershotDirection arg2)
- {
- Interop.AccessibilityManager.AccessibilityFocusOvershotSignalEmit(SwigCPtr, View.getCPtr(arg1), (int)arg2);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public AccessibilityFocusOvershotSignal() : this(Interop.AccessibilityManager.NewAccessibilityFocusOvershotSignal(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-}
return ret;
}
- public virtual bool OnAccessibilityPan(PanGesture gesture)
- {
- bool ret = (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26) ? Interop.ViewImplSignal.OnAccessibilityPanSwigExplicitViewImpl(SwigCPtr, PanGesture.getCPtr(gesture)) : Interop.ViewImplSignal.OnAccessibilityPan(SwigCPtr, PanGesture.getCPtr(gesture)));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public virtual bool OnAccessibilityValueChange(bool isIncrease)
- {
- bool ret = (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28) ? Interop.ViewImplSignal.OnAccessibilityValueChangeSwigExplicitViewImpl(SwigCPtr, isIncrease) : Interop.ViewImplSignal.OnAccessibilityValueChange(SwigCPtr, isIncrease));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public virtual bool OnAccessibilityZoom()
- {
- bool ret = (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29) ? Interop.ViewImplSignal.OnAccessibilityZoomSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImplSignal.OnAccessibilityZoom(SwigCPtr));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
public virtual void OnKeyInputFocusGained()
{
if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30)) Interop.ViewImplSignal.OnKeyInputFocusGainedSwigExplicitViewImpl(SwigCPtr); else Interop.ViewImplSignal.OnKeyInputFocusGained(SwigCPtr);
swigDelegate24 = new SwigDelegateViewImpl_24(SwigDirectorOnStyleChange);
if (SwigDerivedClassHasMethod("OnAccessibilityActivated", swigMethodTypes25))
swigDelegate25 = new SwigDelegateViewImpl_25(SwigDirectorOnAccessibilityActivated);
- if (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26))
- swigDelegate26 = new SwigDelegateViewImpl_26(SwigDirectorOnAccessibilityPan);
- if (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28))
- swigDelegate28 = new SwigDelegateViewImpl_28(SwigDirectorOnAccessibilityValueChange);
- if (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29))
- swigDelegate29 = new SwigDelegateViewImpl_29(SwigDirectorOnAccessibilityZoom);
if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30))
swigDelegate30 = new SwigDelegateViewImpl_30(SwigDirectorOnKeyInputFocusGained);
if (SwigDerivedClassHasMethod("OnKeyInputFocusLost", swigMethodTypes31))
return OnAccessibilityActivated();
}
- private bool SwigDirectorOnAccessibilityPan(global::System.IntPtr gesture)
- {
- return OnAccessibilityPan(new PanGesture(gesture, false));
- }
-
- private bool SwigDirectorOnAccessibilityValueChange(bool isIncrease)
- {
- return OnAccessibilityValueChange(isIncrease);
- }
-
- private bool SwigDirectorOnAccessibilityZoom()
- {
- return OnAccessibilityZoom();
- }
-
private void SwigDirectorOnKeyInputFocusGained()
{
OnKeyInputFocusGained();
/// <since_tizen> 3 </since_tizen>
public delegate bool OnAccessibilityActivatedDelegate();
/// <since_tizen> 3 </since_tizen>
- public delegate bool OnAccessibilityPanDelegate(PanGesture gestures);
- /// <since_tizen> 3 </since_tizen>
- public delegate bool OnAccessibilityValueChangeDelegate(bool isIncrease);
- /// <since_tizen> 3 </since_tizen>
- public delegate bool OnAccessibilityZoomDelegate();
- /// <since_tizen> 3 </since_tizen>
public delegate void OnFocusGainedDelegate();
/// <since_tizen> 3 </since_tizen>
public delegate void OnFocusLostDelegate();
public new OnLayoutNegotiatedDelegate OnLayoutNegotiated;
public new OnStyleChangeDelegate OnStyleChange;
public new OnAccessibilityActivatedDelegate OnAccessibilityActivated;
- public new OnAccessibilityPanDelegate OnAccessibilityPan;
- public new OnAccessibilityValueChangeDelegate OnAccessibilityValueChange;
- public new OnAccessibilityZoomDelegate OnAccessibilityZoom;
public OnFocusGainedDelegate OnFocusGained;
public OnFocusLostDelegate OnFocusLost;
public new GetNextFocusableViewDelegate GetNextFocusableView;
Delegate21 = new DelegateViewWrapperImpl_21(DirectorOnInitialize);
Delegate24 = new DelegateViewWrapperImpl_24(DirectorOnStyleChange);
Delegate25 = new DelegateViewWrapperImpl_25(DirectorOnAccessibilityActivated);
- Delegate26 = new DelegateViewWrapperImpl_26(DirectorOnAccessibilityPan);
- Delegate28 = new DelegateViewWrapperImpl_28(DirectorOnAccessibilityValueChange);
- Delegate29 = new DelegateViewWrapperImpl_29(DirectorOnAccessibilityZoom);
Delegate30 = new DelegateViewWrapperImpl_30(DirectorOnFocusGained);
Delegate31 = new DelegateViewWrapperImpl_31(DirectorOnFocusLost);
Delegate32 = new DelegateViewWrapperImpl_32(DirectorGetNextFocusableActor);
return OnAccessibilityActivated?.Invoke() ?? false;
}
- private bool DirectorOnAccessibilityPan(global::System.IntPtr gesture)
- {
- var panGesture = new PanGesture(gesture, false);
- var ret = OnAccessibilityPan?.Invoke(panGesture) ?? false;
- panGesture.Dispose();
- return ret;
- }
-
- private bool DirectorOnAccessibilityValueChange(bool isIncrease)
- {
- return OnAccessibilityValueChange?.Invoke(isIncrease) ?? false;
- }
-
- private bool DirectorOnAccessibilityZoom()
- {
- return OnAccessibilityZoom?.Invoke() ?? false;
- }
-
private void DirectorOnFocusGained()
{
OnFocusGained?.Invoke();
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-namespace Tizen.NUI
-{
- internal static partial class Interop
- {
- internal static partial class AccessibilityManager
- {
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AccessibilityManager")]
- public static extern global::System.IntPtr NewAccessibilityManager();
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AccessibilityManager")]
- public static extern void DeleteAccessibilityManager(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_Get")]
- public static extern global::System.IntPtr Get();
-
- [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_GetAccessibilityAttribute")]
- public static extern string GetAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetFocusOrder")]
- public static extern void SetFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetFocusOrder")]
- public static extern uint GetFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GenerateNewFocusOrder")]
- public static extern uint GenerateNewFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetActorByFocusOrder")]
- public static extern global::System.IntPtr GetActorByFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetCurrentFocusActor")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool SetCurrentFocusActor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetCurrentFocusActor")]
- public static extern global::System.IntPtr GetCurrentFocusActor(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetCurrentFocusGroup")]
- public static extern global::System.IntPtr GetCurrentFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetCurrentFocusOrder")]
- public static extern uint GetCurrentFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_MoveFocusForward")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool MoveFocusForward(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_MoveFocusBackward")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool MoveFocusBackward(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ClearFocus")]
- public static extern void ClearFocus(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_Reset")]
- public static extern void Reset(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetFocusGroup")]
- public static extern void SetFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_IsFocusGroup")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool IsFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetGroupMode")]
- public static extern void SetGroupMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetGroupMode")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool GetGroupMode(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetWrapMode")]
- public static extern void SetWrapMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetWrapMode")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool GetWrapMode(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetFocusIndicatorActor")]
- public static extern void SetFocusIndicatorActor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetFocusIndicatorActor")]
- public static extern global::System.IntPtr GetFocusIndicatorActor(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetFocusGroup")]
- public static extern global::System.IntPtr GetFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetReadPosition")]
- public static extern global::System.IntPtr GetReadPosition(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusChangedSignal")]
- public static extern global::System.IntPtr FocusChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusOvershotSignal")]
- public static extern global::System.IntPtr FocusOvershotSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusedActorActivatedSignal_Connect")]
- public static extern void FocusedActorActivatedSignalConnect(global::System.Runtime.InteropServices.HandleRef accessibilityManager, global::System.Runtime.InteropServices.HandleRef handler);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusedActorActivatedSignal_Disconnect")]
- public static extern void FocusedActorActivatedSignalDisconnect(global::System.Runtime.InteropServices.HandleRef accessibilityManager, global::System.Runtime.InteropServices.HandleRef handler);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_StatusChangedSignal")]
- public static extern global::System.IntPtr StatusChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionNextSignal")]
- public static extern global::System.IntPtr ActionNextSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPreviousSignal")]
- public static extern global::System.IntPtr ActionPreviousSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionActivateSignal")]
- public static extern global::System.IntPtr ActionActivateSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadSignal")]
- public static extern global::System.IntPtr ActionReadSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionOverSignal")]
- public static extern global::System.IntPtr ActionOverSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadNextSignal")]
- public static extern global::System.IntPtr ActionReadNextSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadPreviousSignal")]
- public static extern global::System.IntPtr ActionReadPreviousSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionUpSignal")]
- public static extern global::System.IntPtr ActionUpSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionDownSignal")]
- public static extern global::System.IntPtr ActionDownSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionClearFocusSignal")]
- public static extern global::System.IntPtr ActionClearFocusSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionBackSignal")]
- public static extern global::System.IntPtr ActionBackSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionScrollUpSignal")]
- public static extern global::System.IntPtr ActionScrollUpSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionScrollDownSignal")]
- public static extern global::System.IntPtr ActionScrollDownSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageLeftSignal")]
- public static extern global::System.IntPtr ActionPageLeftSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageRightSignal")]
- public static extern global::System.IntPtr ActionPageRightSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageUpSignal")]
- public static extern global::System.IntPtr ActionPageUpSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageDownSignal")]
- public static extern global::System.IntPtr ActionPageDownSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionMoveToFirstSignal")]
- public static extern global::System.IntPtr ActionMoveToFirstSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionMoveToLastSignal")]
- public static extern global::System.IntPtr ActionMoveToLastSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadFromTopSignal")]
- public static extern global::System.IntPtr ActionReadFromTopSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadFromNextSignal")]
- public static extern global::System.IntPtr ActionReadFromNextSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionZoomSignal")]
- public static extern global::System.IntPtr ActionZoomSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadPauseResumeSignal")]
- public static extern global::System.IntPtr ActionReadPauseResumeSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionStartStopSignal")]
- public static extern global::System.IntPtr ActionStartStopSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionScrollSignal")]
- public static extern global::System.IntPtr ActionScrollSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Empty")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool AccessibilityActionSignalEmpty(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_GetConnectionCount")]
- public static extern uint AccessibilityActionSignalGetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Connect")]
- public static extern void AccessibilityActionSignalConnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Disconnect")]
- public static extern void AccessibilityActionSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Emit")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool AccessibilityActionSignalEmit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AccessibilityActionSignal")]
- public static extern global::System.IntPtr NewAccessibilityActionSignal();
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AccessibilityActionSignal")]
- public static extern void DeleteAccessibilityActionSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Empty")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool AccessibilityFocusOvershotSignalEmpty(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_GetConnectionCount")]
- public static extern uint AccessibilityFocusOvershotSignalGetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Connect")]
- public static extern void AccessibilityFocusOvershotSignalConnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Disconnect")]
- public static extern void AccessibilityFocusOvershotSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Emit")]
- public static extern void AccessibilityFocusOvershotSignalEmit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AccessibilityFocusOvershotSignal")]
- public static extern global::System.IntPtr NewAccessibilityFocusOvershotSignal();
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AccessibilityFocusOvershotSignal")]
- public static extern void DeleteAccessibilityFocusOvershotSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
- }
- }
-}
[return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
public static extern bool OnAccessibilityActivatedSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1);
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityPan")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool OnAccessibilityPan(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityPanSwigExplicitViewImpl")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool OnAccessibilityPanSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityValueChange")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool OnAccessibilityValueChange(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityValueChangeSwigExplicitViewImpl")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool OnAccessibilityValueChangeSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityZoom")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool OnAccessibilityZoom(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityZoomSwigExplicitViewImpl")]
- [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
- public static extern bool OnAccessibilityZoomSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1);
-
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnKeyInputFocusGained")]
public static extern void OnKeyInputFocusGained(global::System.Runtime.InteropServices.HandleRef jarg1);
+++ /dev/null
-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.9
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
-
-namespace Tizen.NUI
-{
- internal class SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t(global::System.IntPtr cPtr)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- protected SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t()
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using System.ComponentModel;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Accessibility
-{
- /// <summary>
- /// AccessibilityManager manages registration of views in an accessibility focus chain and changing the focused view within that chain.
- /// This class provides the functionality of registering the focus order and description of views and maintaining the focus chain.
- /// It provides functionality of setting the focus and moving the focus forward and backward.
- /// It also draws a highlight for the focused view and emits a signal when the focus is changed.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public partial class AccessibilityManager : BaseHandle
- {
- private static readonly AccessibilityManager instance = AccessibilityManager.GetInternal();
-
- internal AccessibilityManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
- {
- }
-
- /// This will not be public opened.
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
- {
- Interop.AccessibilityManager.DeleteAccessibilityManager(swigCPtr);
- }
-
- // Callback for AccessibilityManager StatusChangedSignal
- private bool OnStatusChanged(IntPtr data)
- {
- return accessibilityManagerStatusChangedEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionNextSignal
- private bool OnActionNext(IntPtr data)
- {
- return accessibilityManagerActionNextEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionPreviousSignal
- private bool OnActionPrevious(IntPtr data)
- {
- return accessibilityManagerActionPreviousEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionActivateSignal
- private bool OnActionActivate(IntPtr data)
- {
- return accessibilityManagerActionActivateEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionReadSignal
- private bool OnActionRead(IntPtr data)
- {
- return accessibilityManagerActionReadEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionOverSignal
- private bool OnActionOver(IntPtr data)
- {
- return accessibilityManagerActionOverEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionReadNextSignal
- private bool OnActionReadNext(IntPtr data)
- {
- return accessibilityManagerActionReadNextEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionReadPreviousSignal
- private bool OnActionReadPrevious(IntPtr data)
- {
- return accessibilityManagerActionReadPreviousEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionUpSignal
- private bool OnActionUp(IntPtr data)
- {
- return accessibilityManagerActionUpEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionDownSignal
- private bool OnActionDown(IntPtr data)
- {
- return accessibilityManagerActionDownEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionClearFocusSignal
- private bool OnActionClearFocus(IntPtr data)
- {
- return accessibilityManagerActionClearFocusEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionBackSignal
- private bool OnActionBack(IntPtr data)
- {
- return accessibilityManagerActionBackEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionScrollUpSignal
- private bool OnActionScrollUp(IntPtr data)
- {
- return accessibilityManagerActionScrollUpEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionScrollDownSignal
- private bool OnActionScrollDown(IntPtr data)
- {
- return accessibilityManagerActionScrollDownEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionPageLeftSignal
- private bool OnActionPageLeft(IntPtr data)
- {
- return accessibilityManagerActionPageLeftEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionPageRightSignal
- private bool OnActionPageRight(IntPtr data)
- {
- return accessibilityManagerActionPageRightEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionPageUpSignal
- private bool OnActionPageUp(IntPtr data)
- {
- return accessibilityManagerActionPageUpEventHandler?.Invoke(instance, null) ?? false;
- }
-
-
- // Callback for AccessibilityManager ActionPageDownSignal
- private bool OnActionPageDown(IntPtr data)
- {
- return accessibilityManagerActionPageDownEventHandler?.Invoke(instance, null) ?? false;
- }
-
-
- // Callback for AccessibilityManager ActionMoveToFirstSignal
- private bool OnActionMoveToFirst(IntPtr data)
- {
- return accessibilityManagerActionMoveToFirstEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionMoveToLastSignal
- private bool OnActionMoveToLast(IntPtr data)
- {
- return accessibilityManagerActionMoveToLastEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionReadFromTopSignal
- private bool OnActionReadFromTop(IntPtr data)
- {
- return accessibilityManagerActionReadFromTopEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionReadFromNextSignal
- private bool OnActionReadFromNext(IntPtr data)
- {
- return accessibilityManagerActionReadFromNextEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionZoomSignal
- private bool OnActionZoom(IntPtr data)
- {
- return accessibilityManagerActionZoomEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionReadPauseResumeSignal
- private bool OnActionReadPauseResume(IntPtr data)
- {
- return accessibilityManagerActionReadPauseResumeEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager ActionStartStopSignal
- private bool OnActionStartStop(IntPtr data)
- {
- return accessibilityManagerActionStartStopEventHandler?.Invoke(instance, null) ?? false;
- }
-
- // Callback for AccessibilityManager FocusChangedSignal
- private void OnFocusChanged(IntPtr view1, IntPtr view2)
- {
- if (accessibilityManagerFocusChangedEventHandler != null)
- {
- FocusChangedEventArgs e = new FocusChangedEventArgs();
-
- // Populate all members of "e" (FocusChangedEventArgs) with real data
- e.ViewCurrent = Registry.GetManagedBaseHandleFromNativePtr(view1) as View;
- e.ViewNext = Registry.GetManagedBaseHandleFromNativePtr(view2) as View;
- //here we send all data to user event handlers
- accessibilityManagerFocusChangedEventHandler(this, e);
- }
- }
-
- // Callback for AccessibilityManager FocusedViewActivatedSignal
- private void OnFocusedViewActivated(IntPtr view)
- {
- if (accessibilityManagerFocusedViewActivatedEventHandler != null)
- {
- FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
-
- // Populate all members of "e" (FocusedViewActivatedEventArgs) with real data
- e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
- //here we send all data to user event handlers
- accessibilityManagerFocusedViewActivatedEventHandler(this, e);
- }
- }
-
- // Callback for AccessibilityManager FocusOvershotSignal
- private void OnFocusOvershot(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction)
- {
- if (accessibilityManagerFocusOvershotEventHandler != null)
- {
- FocusOvershotEventArgs e = new FocusOvershotEventArgs();
-
- // Populate all members of "e" (FocusOvershotEventArgs) with real data
- e.CurrentFocusedView = Registry.GetManagedBaseHandleFromNativePtr(currentFocusedView) as View;
- e.FocusOvershotDirection = direction;
- //here we send all data to user event handlers
- accessibilityManagerFocusOvershotEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// Enumeration for accessibility that needs four information which will be read by screen-reader.
- ///
- /// Reading order : Label -> Trait -> Optional (Value and Hint)
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum AccessibilityAttribute
- {
- /// <summary>
- /// Simple text which contained in components, such as Ok or Cancel in case of a button
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- Label = 0,
- /// <summary>
- /// Description of components trait, such as Button in case of a button
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- Trait,
- /// <summary>
- /// Current value of components (Optional)
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- Value,
- /// <summary>
- /// Hint for action (Optional)
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- Hint,
- /// <summary>
- /// The number of attributes
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- AttributeNumber
- }
-
- /// <summary>
- /// Enumeration for overshoot direction.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public enum FocusOvershotDirection
- {
- /// <summary>
- /// Try to move previous of the first view
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- Previous = -1,
- /// <summary>
- /// Try to move next of the last view
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- Next = 1
- }
-
-
- /// <summary>
- /// Creates an AccessibilityManager handle.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AccessibilityManager() : this(Interop.AccessibilityManager.NewAccessibilityManager(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the singleton of AccessibilityManager object.
- /// </summary>
- /// <returns> A handle to the AccessibilityManager </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static AccessibilityManager Instance
- {
- get
- {
- return instance;
- }
- }
-
- /// <summary>
- /// Sets the information of the specified view's accessibility attribute.
- /// </summary>
- /// <param name="view"> The view to be set with</param>
- /// <param name="type"> The attribute type the text to be set with</param>
- /// <param name="text"> The text for the view's accessibility information</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetAccessibilityAttribute(View view, AccessibilityManager.AccessibilityAttribute type, string text)
- {
- Interop.AccessibilityManager.SetAccessibilityAttribute(SwigCPtr, View.getCPtr(view), (int)type, text);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the text of the specified view's accessibility attribute.
- /// </summary>
- /// <param name="view"> The view to be queried</param>
- /// <param name="type"> The attribute type to be queried</param>
- /// <returns> The text of the view's accessibility information </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string GetAccessibilityAttribute(View view, AccessibilityManager.AccessibilityAttribute type)
- {
- string ret = Interop.AccessibilityManager.GetAccessibilityAttribute(SwigCPtr, View.getCPtr(view), (int)type);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the focus order of the view.
- /// The focus order of each view in the focus chain is unique.
- /// If there is another view assigned with the same focus order already, the new view will be inserted to the focus chain with that focus order,
- /// and the focus order of the original view and all the views followed in the focus chain will be increased accordingly.
- /// If the focus order assigned to the view is 0, it means that view's focus order is undefined
- /// (e.g. the view has a description but with no focus order being set yet) and therefore that view is not focusable.
- /// </summary>
- /// <param name="view"> the view to be set with</param>
- /// <param name="order"> the focus order to be set with</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetFocusOrder(View view, uint order)
- {
- Interop.AccessibilityManager.SetFocusOrder(SwigCPtr, View.getCPtr(view), order);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the focus order of the view.
- /// When the focus order is 0, it means the focus order of the view is undefined.
- /// </summary>
- /// <param name="view"> the view to be set with</param>
- /// <returns> The focus order of the view </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public uint GetFocusOrder(View view)
- {
- uint ret = Interop.AccessibilityManager.GetFocusOrder(SwigCPtr, View.getCPtr(view));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Generates a new focus order number which can be used to assign to views
- /// which need to be appended to the end of the current focus order chain.
- /// The new number will be an increment over the very last focus order number in the focus chain.
- /// If the focus chain is empty then the function returns 1,
- /// else the number returned will be FOLast + 1 where FOLast is the focus order of the very last control in the focus chain.
- /// </summary>
- /// <returns> The focus order of the view </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public uint GenerateNewFocusOrder()
- {
- uint ret = Interop.AccessibilityManager.GenerateNewFocusOrder(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Gets the view that has the specified focus order.
- /// It will return an empty handle if no view in the window has the specified focus order.
- /// </summary>
- /// <param name="order"> The focus order of the view</param>
- /// <returns> The view that has the specified focus order or an empty handle if no view in the stage has the specified focus order </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View GetViewByFocusOrder(uint order)
- {
- var ptr = Interop.AccessibilityManager.GetActorByFocusOrder(SwigCPtr, order);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return this.GetInstanceSafely<View>(ptr);
- }
-
- /// <summary>
- /// Moves the focus to the specified view.
- /// Only one view can be focused at the same time. The view must have a defined focus order
- /// and must be focusable, visible and in the window.
- /// </summary>
- /// <param name="view"> the view to be set with</param>
- /// <returns> Whether the focus is successful or not </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool SetCurrentFocusView(View view)
- {
- bool ret = Interop.AccessibilityManager.SetCurrentFocusActor(SwigCPtr, View.getCPtr(view));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Gets the current focused view.
- /// </summary>
- /// <returns> A handle to the current focused view or an empty handle if no view is focused </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View GetCurrentFocusView()
- {
- var ptr = Interop.AccessibilityManager.GetCurrentFocusActor(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return this.GetInstanceSafely<View>(ptr);
- }
-
- /// <summary>
- /// Gets the focus group of current focused view.
- /// </summary>
- /// <returns> A handle to the immediate parent of the current focused view which is also a focus group, or an empty handle if no view is focused </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View GetCurrentFocusGroup()
- {
- var ptr = Interop.AccessibilityManager.GetCurrentFocusGroup(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return this.GetInstanceSafely<View>(ptr);
- }
-
- /// <summary>
- /// Gets the focus order of currently focused view.
- /// </summary>
- /// <returns> The focus order of the currently focused view or 0 if no view is in focus </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public uint GetCurrentFocusOrder()
- {
- uint ret = Interop.AccessibilityManager.GetCurrentFocusOrder(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Moves the focus to the next focusable view in the focus chain (according to the focus traversal order).
- /// When the focus movement is wrapped around, the focus will be moved to the first focusable view when it reaches the end of the focus chain.
- /// </summary>
- /// <returns> True if the moving was successful </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool MoveFocusForward()
- {
- bool ret = Interop.AccessibilityManager.MoveFocusForward(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Moves the focus to the previous focusable view in the focus chain (according to the focus traversal order).
- /// When the focus movement is wrapped around, the focus will be moved to the last focusable view
- /// when it reaches the beginning of the focus chain.
- /// </summary>
- /// <returns> True if the moving was successful </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool MoveFocusBackward()
- {
- bool ret = Interop.AccessibilityManager.MoveFocusBackward(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Clears the focus from the current focused view if any, so that no view is focused in the focus chain.
- /// It will emit focus changed signal without current focused view.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void ClearFocus()
- {
- Interop.AccessibilityManager.ClearFocus(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Clears every registered focusable view from focus-manager.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public new void Reset()
- {
- Interop.AccessibilityManager.Reset(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Sets whether an view is a focus group that can limit the scope of focus movement to its child views in the focus chain.
- /// </summary>
- /// <param name="view"> the view to be set as a focus group</param>
- /// <param name="isFocusGroup"> Whether to set the view to be a focus group or not</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetFocusGroup(View view, bool isFocusGroup)
- {
- Interop.AccessibilityManager.SetFocusGroup(SwigCPtr, View.getCPtr(view), isFocusGroup);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Checks whether the view is set as a focus group or not.
- /// </summary>
- /// <param name="view"> the view to be checked</param>
- /// <returns> Whether the view is set as a focus group </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool IsFocusGroup(View view)
- {
- bool ret = Interop.AccessibilityManager.IsFocusGroup(SwigCPtr, View.getCPtr(view));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets whether the group mode is enabled or not.
- /// When the group mode is enabled, the focus movement will be limited to the child views of the current focus group including the current focus group itself.
- /// The current focus group is the closest ancestor of the current focused view that is set as a focus group.
- /// </summary>
- /// <param name="enabled"> Whether the group mode is enabled or not</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetGroupMode(bool enabled)
- {
- Interop.AccessibilityManager.SetGroupMode(SwigCPtr, enabled);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets whether the group mode is enabled or not.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// <returns> Whether the group mode is enabled or not. </returns>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool GetGroupMode()
- {
- bool ret = Interop.AccessibilityManager.GetGroupMode(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets whether focus will be moved to the beginning of the focus chain when it reaches the end or vice versa.
- /// When both the wrap mode and the group mode are enabled, focus will be wrapped within the current focus group.
- /// Focus will not be wrapped in default.
- /// </summary>
- /// <param name="wrapped"> Whether the focus movement is wrapped around or not</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetWrapMode(bool wrapped)
- {
- Interop.AccessibilityManager.SetWrapMode(SwigCPtr, wrapped);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets whether the wrap mode is enabled or not.
- /// </summary>
- /// <returns> Whether the wrap mode is enabled or not. </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool GetWrapMode()
- {
- bool ret = Interop.AccessibilityManager.GetWrapMode(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the focus indicator view.
- /// This will replace the default focus indicator view in AccessibilityManager and
- /// will be added to the focused view as a highlight.
- /// </summary>
- /// <param name="indicator"> The indicator view to be added</param>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetFocusIndicatorView(View indicator)
- {
- Interop.AccessibilityManager.SetFocusIndicatorActor(SwigCPtr, View.getCPtr(indicator));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the focus indicator view.
- /// </summary>
- /// <returns> A handle to the focus indicator view </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View GetFocusIndicatorView()
- {
- var ptr = Interop.AccessibilityManager.GetFocusIndicatorActor(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return this.GetInstanceSafely<View>(ptr);
- }
-
- /// <summary>
- /// Returns the closest ancestor of the given view that is a focus group.
- /// </summary>
- /// <param name="view"> The view to be checked for its focus group</param>
- /// <returns> The focus group the given view belongs to or an empty handle if the given view doesn't belong to any focus group </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View GetFocusGroup(View view)
- {
- var ptr = Interop.AccessibilityManager.GetFocusGroup(SwigCPtr, View.getCPtr(view));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return this.GetInstanceSafely<View>(ptr);
- }
-
- /// <summary>
- /// Returns the current position of the read action.
- /// </summary>
- /// <returns> The current event position </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Vector2 GetReadPosition()
- {
- Vector2 ret = new Vector2(Interop.AccessibilityManager.GetReadPosition(SwigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- [Obsolete("Do not use this, that will be deprecated. Use AccessibilityManager.Instance instead.")]
- internal static AccessibilityManager Get()
- {
- return AccessibilityManager.Instance;
- }
-
- private static AccessibilityManager GetInternal()
- {
- global::System.IntPtr cPtr = Interop.AccessibilityManager.Get();
-
- if(cPtr == global::System.IntPtr.Zero)
- {
- NUILog.ErrorBacktrace("AccessibilityManager.Instance called before Application created, or after Application terminated!");
- }
-
- AccessibilityManager ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as AccessibilityManager;
- if (ret != null)
- {
- NUILog.ErrorBacktrace("AccessibilityManager.GetInternal() Should be called only one time!");
- object dummyObect = new object();
-
- global::System.Runtime.InteropServices.HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(dummyObect, cPtr);
- Interop.BaseHandle.DeleteBaseHandle(CPtr);
- CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- else
- {
- ret = new AccessibilityManager(cPtr, true);
- }
-
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- NUILog.ErrorBacktrace("We should not manually dispose for singleton class!");
- }
- else
- {
- base.Dispose(disposing);
- }
- }
-
- // Signals - AccessibilityManagerEvent.cs
- internal FocusChangedSignal FocusChangedSignal()
- {
- FocusChangedSignal ret = new FocusChangedSignal(Interop.AccessibilityManager.FocusChangedSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityFocusOvershotSignal FocusOvershotSignal()
- {
- AccessibilityFocusOvershotSignal ret = new AccessibilityFocusOvershotSignal(Interop.AccessibilityManager.FocusOvershotSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal StatusChangedSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.StatusChangedSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionNextSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionNextSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionPreviousSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPreviousSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionActivateSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionActivateSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionReadSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionOverSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionOverSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionReadNextSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadNextSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionReadPreviousSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadPreviousSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionUpSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionUpSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionDownSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionDownSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionClearFocusSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionClearFocusSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionBackSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionBackSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionScrollUpSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionScrollUpSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionScrollDownSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionScrollDownSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionPageLeftSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageLeftSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionPageRightSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageRightSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionPageUpSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageUpSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionPageDownSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageDownSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionMoveToFirstSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionMoveToFirstSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionMoveToLastSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionMoveToLastSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionReadFromTopSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadFromTopSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionReadFromNextSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadFromNextSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionZoomSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionZoomSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionReadPauseResumeSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadPauseResumeSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AccessibilityActionSignal ActionStartStopSignal()
- {
- AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionStartStopSignal(SwigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t ActionScrollSignal()
- {
- SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t ret = new SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t(Interop.AccessibilityManager.ActionScrollSignal(SwigCPtr));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-using System;
-using System.ComponentModel;
-using System.Runtime.InteropServices;
-
-namespace Tizen.NUI.Accessibility
-{
- public partial class AccessibilityManager
- {
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerStatusChangedEventHandler;
- private StatusChangedEventCallbackDelegate accessibilityManagerStatusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionNextEventHandler;
- private ActionNextEventCallbackDelegate accessibilityManagerActionNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionPreviousEventHandler;
- private ActionPreviousEventCallbackDelegate accessibilityManagerActionPreviousEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionActivateEventHandler;
- private ActionActivateEventCallbackDelegate accessibilityManagerActionActivateEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionReadEventHandler;
- private ActionReadEventCallbackDelegate accessibilityManagerActionReadEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionOverEventHandler;
- private ActionOverEventCallbackDelegate accessibilityManagerActionOverEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionReadNextEventHandler;
- private ActionReadNextEventCallbackDelegate accessibilityManagerActionReadNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionReadPreviousEventHandler;
- private ActionReadPreviousEventCallbackDelegate accessibilityManagerActionReadPreviousEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionUpEventHandler;
- private ActionUpEventCallbackDelegate accessibilityManagerActionUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionDownEventHandler;
- private ActionDownEventCallbackDelegate accessibilityManagerActionDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionClearFocusEventHandler;
- private ActionClearFocusEventCallbackDelegate accessibilityManagerActionClearFocusEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionBackEventHandler;
- private ActionBackEventCallbackDelegate accessibilityManagerActionBackEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionScrollUpEventHandler;
- private ActionScrollUpEventCallbackDelegate accessibilityManagerActionScrollUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionScrollDownEventHandler;
- private ActionScrollDownEventCallbackDelegate accessibilityManagerActionScrollDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionPageLeftEventHandler;
- private ActionPageLeftEventCallbackDelegate accessibilityManagerActionPageLeftEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionPageRightEventHandler;
- private ActionPageRightEventCallbackDelegate accessibilityManagerActionPageRightEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionPageUpEventHandler;
- private ActionPageUpEventCallbackDelegate accessibilityManagerActionPageUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionPageDownEventHandler;
- private ActionPageDownEventCallbackDelegate accessibilityManagerActionPageDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionMoveToFirstEventHandler;
- private ActionMoveToFirstEventCallbackDelegate accessibilityManagerActionMoveToFirstEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionMoveToLastEventHandler;
- private ActionMoveToLastEventCallbackDelegate accessibilityManagerActionMoveToLastEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionReadFromTopEventHandler;
- private ActionReadFromTopEventCallbackDelegate accessibilityManagerActionReadFromTopEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionReadFromNextEventHandler;
- private ActionReadFromNextEventCallbackDelegate accessibilityManagerActionReadFromNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionZoomEventHandler;
- private ActionZoomEventCallbackDelegate accessibilityManagerActionZoomEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionReadPauseResumeEventHandler;
- private ActionReadPauseResumeEventCallbackDelegate accessibilityManagerActionReadPauseResumeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager);
- private ReturnTypeEventHandler<object, EventArgs, bool> accessibilityManagerActionStartStopEventHandler;
- private ActionStartStopEventCallbackDelegate accessibilityManagerActionStartStopEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate void FocusChangedEventCallbackDelegate(IntPtr view1, IntPtr view2);
- private EventHandler<FocusChangedEventArgs> accessibilityManagerFocusChangedEventHandler;
- private FocusChangedEventCallbackDelegate accessibilityManagerFocusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate void FocusedViewActivatedEventCallbackDelegate(IntPtr view);
- private EventHandler<FocusedViewActivatedEventArgs> accessibilityManagerFocusedViewActivatedEventHandler;
- private FocusedViewActivatedEventCallbackDelegate accessibilityManagerFocusedViewActivatedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction);
- private EventHandler<FocusOvershotEventArgs> accessibilityManagerFocusOvershotEventHandler;
- private FocusOvershotEventCallbackDelegate accessibilityManagerFocusOvershotEventCallbackDelegate;
-
- // Accessibility action signals
-
- /// <summary>
- /// This is emitted when accessibility(screen-reader) feature turned on or off.
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> StatusChanged
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerStatusChangedEventHandler == null)
- {
- accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged);
- this.StatusChangedSignal().Connect(accessibilityManagerStatusChangedEventCallbackDelegate);
- }
-
- accessibilityManagerStatusChangedEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerStatusChangedEventHandler -= value;
-
- if (accessibilityManagerStatusChangedEventHandler == null && StatusChangedSignal().Empty() == false)
- {
- this.StatusChangedSignal().Disconnect(accessibilityManagerStatusChangedEventCallbackDelegate);
- }
-
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move focus to the next focusable view (by one finger flick down).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionNext
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionNextEventHandler == null)
- {
- accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext);
- this.ActionNextSignal().Connect(accessibilityManagerActionNextEventCallbackDelegate);
- }
-
- accessibilityManagerActionNextEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionNextEventHandler -= value;
-
- if (accessibilityManagerActionNextEventHandler == null && ActionNextSignal().Empty() == false)
- {
- this.ActionNextSignal().Disconnect(accessibilityManagerActionNextEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move focus to the previous focusable view (by one finger flick up).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionPrevious
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionPreviousEventHandler == null)
- {
- accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious);
- this.ActionPreviousSignal().Connect(accessibilityManagerActionPreviousEventCallbackDelegate);
- }
-
- accessibilityManagerActionPreviousEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionPreviousEventHandler -= value;
-
- if (accessibilityManagerActionPreviousEventHandler == null && ActionPreviousSignal().Empty() == false)
- {
- this.ActionPreviousSignal().Disconnect(accessibilityManagerActionPreviousEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to activate the current focused view (by one finger double tap).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionActivate
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionActivateEventHandler == null)
- {
- accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate);
- this.ActionActivateSignal().Connect(accessibilityManagerActionActivateEventCallbackDelegate);
- }
-
- accessibilityManagerActionActivateEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionActivateEventHandler -= value;
-
- if (accessibilityManagerActionActivateEventHandler == null && ActionActivateSignal().Empty() == false)
- {
- this.ActionActivateSignal().Disconnect(accessibilityManagerActionActivateEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to focus and read the view (by one finger tap).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionRead
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionReadEventHandler == null)
- {
- accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead);
- this.ActionReadSignal().Connect(accessibilityManagerActionReadEventCallbackDelegate);
- }
-
- accessibilityManagerActionReadEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionReadEventHandler -= value;
-
- if (accessibilityManagerActionReadEventHandler == null && ActionReadSignal().Empty() == false)
- {
- this.ActionReadSignal().Disconnect(accessibilityManagerActionReadEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to focus and read the view (by one finger move).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionOver
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionOverEventHandler == null)
- {
- accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver);
- this.ActionOverSignal().Connect(accessibilityManagerActionOverEventCallbackDelegate);
- }
-
- accessibilityManagerActionOverEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionOverEventHandler -= value;
-
- if (accessibilityManagerActionOverEventHandler == null && ActionOverSignal().Empty() == false)
- {
- this.ActionOverSignal().Disconnect(accessibilityManagerActionOverEventCallbackDelegate);
- }
-
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move focus to the next focusable view (by one finger flick right).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionReadNext
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionReadNextEventHandler == null)
- {
- accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext);
- this.ActionReadNextSignal().Connect(accessibilityManagerActionReadNextEventCallbackDelegate);
- }
-
- accessibilityManagerActionReadNextEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionReadNextEventHandler -= value;
-
- if (accessibilityManagerActionReadNextEventHandler == null && ActionReadNextSignal().Empty() == false)
- {
- this.ActionReadNextSignal().Disconnect(accessibilityManagerActionReadNextEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move focus to the previous focusable view (by one finger flick left).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionReadPrevious
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionReadPreviousEventHandler == null)
- {
- accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious);
- this.ActionReadPreviousSignal().Connect(accessibilityManagerActionReadPreviousEventCallbackDelegate);
- }
-
- accessibilityManagerActionReadPreviousEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionReadPreviousEventHandler -= value;
-
- if (accessibilityManagerActionReadPreviousEventHandler == null && ActionReadPreviousSignal().Empty() == false)
- {
- this.ActionReadPreviousSignal().Disconnect(accessibilityManagerActionReadPreviousEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to change the value when the current focused view is a slider
- /// (by double finger down and move up and right).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionUp
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionUpEventHandler == null)
- {
- accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp);
- this.ActionUpSignal().Connect(accessibilityManagerActionUpEventCallbackDelegate);
- }
-
- accessibilityManagerActionUpEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionUpEventHandler -= value;
-
- if (accessibilityManagerActionUpEventHandler == null && ActionUpSignal().Empty() == false)
- {
- this.ActionUpSignal().Disconnect(accessibilityManagerActionUpEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to change the value when the current focused view is a slider
- /// (by double finger down and move down and left).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionDown
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionDownEventHandler == null)
- {
- accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown);
- this.ActionDownSignal().Connect(accessibilityManagerActionDownEventCallbackDelegate);
- }
-
- accessibilityManagerActionDownEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionDownEventHandler -= value;
-
- if (accessibilityManagerActionDownEventHandler == null && ActionDownSignal().Empty() == false)
- {
- this.ActionDownSignal().Disconnect(accessibilityManagerActionDownEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to clear the focus from the current focused view
- /// if any, so that no view is focused in the focus chain.
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionClearFocus
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionClearFocusEventHandler == null)
- {
- accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus);
- this.ActionClearFocusSignal().Connect(accessibilityManagerActionClearFocusEventCallbackDelegate);
- }
-
- accessibilityManagerActionClearFocusEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionClearFocusEventHandler -= value;
-
- if (accessibilityManagerActionClearFocusEventHandler == null && ActionClearFocusSignal().Empty() == false)
- {
- this.ActionClearFocusSignal().Disconnect(accessibilityManagerActionClearFocusEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to navigate back (by two fingers circle draw).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionBack
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionBackEventHandler == null)
- {
- accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack);
- this.ActionBackSignal().Connect(accessibilityManagerActionBackEventCallbackDelegate);
- }
-
- accessibilityManagerActionBackEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionBackEventHandler -= value;
-
- if (accessibilityManagerActionBackEventHandler == null && ActionBackSignal().Empty() == false)
- {
- this.ActionBackSignal().Disconnect(accessibilityManagerActionBackEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to scroll up the list (by two finger swipe up).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionScrollUp
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionScrollUpEventHandler == null)
- {
- accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp);
- this.ActionScrollUpSignal().Connect(accessibilityManagerActionScrollUpEventCallbackDelegate);
- }
-
- accessibilityManagerActionScrollUpEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionScrollUpEventHandler -= value;
-
- if (accessibilityManagerActionScrollUpEventHandler == null && ActionScrollUpSignal().Empty() == false)
- {
- this.ActionScrollUpSignal().Disconnect(accessibilityManagerActionScrollUpEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to scroll down the list (by two finger swipe down).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionScrollDown
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionScrollDownEventHandler == null)
- {
- accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown);
- this.ActionScrollDownSignal().Connect(accessibilityManagerActionScrollDownEventCallbackDelegate);
- }
-
- accessibilityManagerActionScrollDownEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionScrollDownEventHandler -= value;
-
- if (accessibilityManagerActionScrollDownEventHandler == null && ActionScrollDownSignal().Empty() == false)
- {
- this.ActionScrollDownSignal().Disconnect(accessibilityManagerActionScrollDownEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to scroll left to the previous page (by two finger swipe left).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionPageLeft
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionPageLeftEventHandler == null)
- {
- accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft);
- this.ActionPageLeftSignal().Connect(accessibilityManagerActionPageLeftEventCallbackDelegate);
- }
-
- accessibilityManagerActionPageLeftEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionPageLeftEventHandler -= value;
-
- if (accessibilityManagerActionPageLeftEventHandler == null && ActionPageLeftSignal().Empty() == false)
- {
- this.ActionPageLeftSignal().Disconnect(accessibilityManagerActionPageLeftEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to scroll right to the next page (by two finger swipe right).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionPageRight
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionPageRightEventHandler == null)
- {
- accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight);
- this.ActionPageRightSignal().Connect(accessibilityManagerActionPageRightEventCallbackDelegate);
- }
-
- accessibilityManagerActionPageRightEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionPageRightEventHandler -= value;
-
- if (accessibilityManagerActionPageRightEventHandler == null && ActionPageRightSignal().Empty() == false)
- {
- this.ActionPageRightSignal().Disconnect(accessibilityManagerActionPageRightEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to scroll up to the previous page (by one finger swipe left and right).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionPageUp
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionPageUpEventHandler == null)
- {
- accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp);
- this.ActionPageUpSignal().Connect(accessibilityManagerActionPageUpEventCallbackDelegate);
- }
-
- accessibilityManagerActionPageUpEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionPageUpEventHandler -= value;
-
- if (accessibilityManagerActionPageUpEventHandler == null && ActionPageUpSignal().Empty() == false)
- {
- this.ActionPageUpSignal().Disconnect(accessibilityManagerActionPageUpEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to scroll down to the next page (by one finger swipe right and left).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionPageDown
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionPageDownEventHandler == null)
- {
- accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown);
- this.ActionPageDownSignal().Connect(accessibilityManagerActionPageDownEventCallbackDelegate);
- }
-
- accessibilityManagerActionPageDownEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionPageDownEventHandler -= value;
-
- if (accessibilityManagerActionPageDownEventHandler == null && ActionPageDownSignal().Empty() == false)
- {
- this.ActionPageDownSignal().Disconnect(accessibilityManagerActionPageDownEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move the focus to the first item on the screen
- /// (by one finger swipe up and down).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionMoveToFirst
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionMoveToFirstEventHandler == null)
- {
- accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst);
- this.ActionMoveToFirstSignal().Connect(accessibilityManagerActionMoveToFirstEventCallbackDelegate);
- }
-
- accessibilityManagerActionMoveToFirstEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionMoveToFirstEventHandler -= value;
-
- if (accessibilityManagerActionMoveToFirstEventHandler == null && ActionMoveToFirstSignal().Empty() == false)
- {
- this.ActionMoveToFirstSignal().Disconnect(accessibilityManagerActionMoveToFirstEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move the focus to the last item on the screen
- /// (by one finger swipe down and up).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionMoveToLast
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionMoveToLastEventHandler == null)
- {
- accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast);
- this.ActionMoveToLastSignal().Connect(accessibilityManagerActionMoveToLastEventCallbackDelegate);
- }
-
- accessibilityManagerActionMoveToLastEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionMoveToLastEventHandler -= value;
-
- if (accessibilityManagerActionMoveToLastEventHandler == null && ActionMoveToLastSignal().Empty() == false)
- {
- this.ActionMoveToLastSignal().Disconnect(accessibilityManagerActionMoveToLastEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to focus and read from the first item on the top continuously
- /// (by three fingers single tap).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionReadFromTop
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionReadFromTopEventHandler == null)
- {
- accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop);
- this.ActionReadFromTopSignal().Connect(accessibilityManagerActionReadFromTopEventCallbackDelegate);
- }
-
- accessibilityManagerActionReadFromTopEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionReadFromTopEventHandler -= value;
-
- if (accessibilityManagerActionReadFromTopEventHandler == null && ActionReadFromTopSignal().Empty() == false)
- {
- this.ActionReadFromTopSignal().Disconnect(accessibilityManagerActionReadFromTopEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to move the focus to and read from the next item continuously
- /// (by three fingers double tap).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionReadFromNext
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionReadFromNextEventHandler == null)
- {
- accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext);
- this.ActionReadFromNextSignal().Connect(accessibilityManagerActionReadFromNextEventCallbackDelegate);
- }
-
- accessibilityManagerActionReadFromNextEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionReadFromNextEventHandler -= value;
-
- if (accessibilityManagerActionReadFromNextEventHandler == null && ActionReadFromNextSignal().Empty() == false)
- {
- this.ActionReadFromNextSignal().Disconnect(accessibilityManagerActionReadFromNextEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to zoom (by one finger triple tap)
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionZoom
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionZoomEventHandler == null)
- {
- accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom);
- this.ActionZoomSignal().Connect(accessibilityManagerActionZoomEventCallbackDelegate);
- }
-
- accessibilityManagerActionZoomEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionZoomEventHandler -= value;
-
- if (accessibilityManagerActionZoomEventHandler == null && ActionZoomSignal().Empty() == false)
- {
- this.ActionZoomSignal().Disconnect(accessibilityManagerActionZoomEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to pause/resume the current speech (by two fingers single tap).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionReadPauseResume
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionReadPauseResumeEventHandler == null)
- {
- accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume);
- this.ActionReadPauseResumeSignal().Connect(accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
- }
-
- accessibilityManagerActionReadPauseResumeEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionReadPauseResumeEventHandler -= value;
-
- if (accessibilityManagerActionReadPauseResumeEventHandler == null && ActionReadPauseResumeSignal().Empty() == false)
- {
- this.ActionReadPauseResumeSignal().Disconnect(accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This is emitted when accessibility action is received to start/stop the current action (by two fingers double tap).
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event ReturnTypeEventHandler<object, EventArgs, bool> ActionStartStop
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerActionStartStopEventHandler == null)
- {
- accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop);
- this.ActionStartStopSignal().Connect(accessibilityManagerActionStartStopEventCallbackDelegate);
- }
-
- accessibilityManagerActionStartStopEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerActionStartStopEventHandler -= value;
-
- if (accessibilityManagerActionStartStopEventHandler == null && ActionStartStopSignal().Empty() == false)
- {
- this.ActionStartStopSignal().Disconnect(accessibilityManagerActionStartStopEventCallbackDelegate);
- }
- }
- }
-
- /*
- // To be replaced by a new event that takes Touch
- public event DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> ActionScroll
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollEventHandler == null)
- {
- _accessibilityManagerActionScrollEventHandler += value;
-
- _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll);
- this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionScrollEventHandler != null)
- {
- this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionScrollSignal
- private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent)
- {
- ActionScrollEventArgs e = new ActionScrollEventArgs();
-
- // Populate all members of "e" (ActionScrollEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager);
- e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent);
-
- if (_accessibilityManagerActionScrollEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionScrollEventHandler(this, e);
- }
- return false;
- }
- */
-
- // Common Signals
-
- /// <summary>
- /// This signal is emitted when the current focused view is changed.
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<FocusChangedEventArgs> FocusChanged
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerFocusChangedEventHandler == null)
- {
- accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
- this.FocusChangedSignal().Connect(accessibilityManagerFocusChangedEventCallbackDelegate);
- }
-
- accessibilityManagerFocusChangedEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerFocusChangedEventHandler -= value;
-
- if (accessibilityManagerFocusChangedEventHandler == null && FocusChangedSignal().Empty() == false)
- {
- this.FocusChangedSignal().Disconnect(accessibilityManagerFocusChangedEventCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// This signal is emitted when the current focused view is activated.
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<FocusedViewActivatedEventArgs> FocusedViewActivated
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerFocusedViewActivatedEventHandler == null)
- {
- accessibilityManagerFocusedViewActivatedEventCallbackDelegate = new FocusedViewActivatedEventCallbackDelegate(OnFocusedViewActivated);
- Interop.AccessibilityManager.FocusedActorActivatedSignalConnect(SwigCPtr, accessibilityManagerFocusedViewActivatedEventCallbackDelegate.ToHandleRef(this));
- NDalicPINVOKE.ThrowExceptionIfExists();
- }
-
- accessibilityManagerFocusedViewActivatedEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerFocusedViewActivatedEventHandler -= value;
-
- if (accessibilityManagerFocusedViewActivatedEventHandler == null && accessibilityManagerFocusedViewActivatedEventCallbackDelegate != null)
- {
- Interop.AccessibilityManager.FocusedActorActivatedSignalDisconnect(SwigCPtr, accessibilityManagerFocusedViewActivatedEventCallbackDelegate.ToHandleRef(this));
- NDalicPINVOKE.ThrowExceptionIfExists();
- accessibilityManagerFocusedViewActivatedEventCallbackDelegate = null;
- }
- }
- }
-
- /// <summary>
- /// This signal is emitted when there is no way to move focus further.
- /// </summary>
- /// <returns> The signal to connect to </returns>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<FocusOvershotEventArgs> FocusOvershot
- {
- add
- {
- // Restricted to only one listener
- if (accessibilityManagerFocusOvershotEventHandler == null)
- {
- accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot);
- this.FocusOvershotSignal().Connect(accessibilityManagerFocusOvershotEventCallbackDelegate);
- }
-
- accessibilityManagerFocusOvershotEventHandler += value;
- }
-
- remove
- {
- accessibilityManagerFocusOvershotEventHandler -= value;
-
- if (accessibilityManagerFocusOvershotEventHandler == null && FocusOvershotSignal().Empty() == false)
- {
- this.FocusOvershotSignal().Disconnect(accessibilityManagerFocusOvershotEventCallbackDelegate);
- }
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright(c) 2021 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-using System;
-using System.ComponentModel;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Accessibility
-{
- public partial class AccessibilityManager
- {
- /// <summary>
- /// Event arguments that passed via FocusChangedEvent signal
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class FocusChangedEventArgs : EventArgs
- {
- private View viewCurrent;
- private View viewNext;
-
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View ViewCurrent
- {
- get
- {
- return viewCurrent;
- }
- set
- {
- viewCurrent = value;
- }
- }
-
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View ViewNext
- {
- get
- {
- return viewNext;
- }
- set
- {
- viewNext = value;
- }
- }
- }
-
- /// <summary>
- /// Event arguments that passed via FocusedViewActivated signal
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class FocusedViewActivatedEventArgs : EventArgs
- {
- private View view;
-
-
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View View
- {
- get
- {
- return view;
- }
- set
- {
- view = value;
- }
- }
- }
-
- /// <summary>
- /// Event arguments that passed via FocusOvershot signal
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class FocusOvershotEventArgs : EventArgs
- {
- private View currentFocusedView;
- private AccessibilityManager.FocusOvershotDirection focusOvershotDirection;
-
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public View CurrentFocusedView
- {
- get
- {
- return currentFocusedView;
- }
- set
- {
- currentFocusedView = value;
- }
- }
-
- /// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection
- {
- get
- {
- return focusOvershotDirection;
- }
- set
- {
- focusOvershotDirection = value;
- }
- }
- }
- }
-}
return OnKeyboardEnter();
}
- /// <summary>
- /// This method should be overridden by deriving classes when they wish to respond the accessibility.
- /// </summary>
- /// <param name="gestures">The pan gesture.</param>
- /// <returns>True if the pan gesture has been consumed by this control.</returns>
- internal virtual bool OnAccessibilityPan(PanGesture gestures)
- {
- return false;
- }
-
- /// <summary>
- /// This method should be overridden by deriving classes when they wish to respond the accessibility up and down action (i.e., value change of slider control).
- /// </summary>
- /// <param name="isIncrease">Whether the value should be increased or decreased.</param>
- /// <returns>True if the value changed action has been consumed by this control.</returns>
- internal virtual bool OnAccessibilityValueChange(bool isIncrease)
- {
- return false;
- }
-
- /// <summary>
- /// This method should be overridden by deriving classes when they wish to respond the accessibility zoom action.
- /// </summary>
- /// <returns>True if the zoom action has been consumed by this control.</returns>
- internal virtual bool OnAccessibilityZoom()
- {
- return false;
- }
-
/// <summary>
/// Allows deriving classes to disable any of the gesture detectors.<br />
/// Like EnableGestureDetection, this can also be called using bitwise or one at a time.<br />
viewWrapperImpl.OnLayoutNegotiated = new ViewWrapperImpl.OnLayoutNegotiatedDelegate(OnLayoutNegotiated);
viewWrapperImpl.OnStyleChange = new ViewWrapperImpl.OnStyleChangeDelegate(OnStyleChange);
viewWrapperImpl.OnAccessibilityActivated = new ViewWrapperImpl.OnAccessibilityActivatedDelegate(OnAccessibilityActivated);
- viewWrapperImpl.OnAccessibilityPan = new ViewWrapperImpl.OnAccessibilityPanDelegate(OnAccessibilityPan);
- viewWrapperImpl.OnAccessibilityValueChange = new ViewWrapperImpl.OnAccessibilityValueChangeDelegate(OnAccessibilityValueChange);
- viewWrapperImpl.OnAccessibilityZoom = new ViewWrapperImpl.OnAccessibilityZoomDelegate(OnAccessibilityZoom);
viewWrapperImpl.OnFocusGained = new ViewWrapperImpl.OnFocusGainedDelegate(OnFocusGained);
viewWrapperImpl.OnFocusLost = new ViewWrapperImpl.OnFocusLostDelegate(OnFocusLost);
viewWrapperImpl.GetNextFocusableView = new ViewWrapperImpl.GetNextFocusableViewDelegate(GetNextFocusableView);
viewWrapperImpl.OnLayoutNegotiated = null;
viewWrapperImpl.OnStyleChange = null;
viewWrapperImpl.OnAccessibilityActivated = null;
- viewWrapperImpl.OnAccessibilityPan = null;
- viewWrapperImpl.OnAccessibilityValueChange = null;
- viewWrapperImpl.OnAccessibilityZoom = null;
viewWrapperImpl.OnFocusGained = null;
viewWrapperImpl.OnFocusLost = null;
viewWrapperImpl.GetNextFocusableView = null;
+++ /dev/null
-
-using System;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Accessibility;
-
-///////////////////////////////////////////////////////////////////////////////////////////////
-/// How to turn on and test Accessibility ///
-/// There are two ways to turn on screen reader (TTS) in the target ///
-/// 1) Settings > Accessibility > Screen reader > On ///
-/// 2) Open Terminal and use command : ///
-/// # vconftool set -f -t bool db/setting/accessibility/tts 1 ///
-/// If you turn off screen reader, type and execute text based command below : ///
-/// # vconftool set -f -t bool db/setting/accessibility/tts 0 ///
-///////////////////////////////////////////////////////////////////////////////////////////////
-
-namespace Tizen.NUI.Samples
-{
- public class AccessibilityManagerSample : IExample
- {
- const string tag = "NUITEST";
-
- const int mRow = 3;
- const int mColumn = 3;
- const int mContents = mRow * mColumn;
-
- Size2D windowSize;
- TableView table;
-
- public void Activate()
- {
- Window window = NUIApplication.GetDefaultWindow();
- window.BackgroundColor = Color.White;
- windowSize = window.Size;
-
- // Create Table
- table = new TableView(mRow, mColumn)
- {
- PositionUsesPivotPoint = true,
- PivotPoint = PivotPoint.Center,
- ParentOrigin = ParentOrigin.Center,
- Size = new Size((float)(windowSize.Width * 0.8), (float)(windowSize.Height * 0.8)),
- BackgroundColor = new Color(0.2f, 0.5f, 0.5f, 1.0f),
- CellPadding = new Vector2(10, 10),
- };
- window.GetDefaultLayer().Add(table);
-
- uint exampleCount = 0;
-
- // Fill the contents in TableView
- for (uint row = 0; row < mRow; row++)
- {
- for (uint column = 0; column < mColumn; column++)
- {
- TextLabel content = CreateText();
- content.Name = "TextLabel" + exampleCount;
- content.Text = "R" + row + " - C" + column;
-
- ///////////////////////////////////////////////////////////////////////////////////////////////
- /// How to set Accessibility attribute to components ///
- /// 1. Create AccessibilityManager. ///
- /// 2. Set the focus order of each view and the index of order should start 1 (one). ///
- /// 3. Set the information of each view's accessibility attribute. ///
- /// There are four attributes, which will be read by screen reader. ///
- /// And the order of reading is : Label -> Trait -> Value (Optional) -> Hint (Optional) ///
- ///////////////////////////////////////////////////////////////////////////////////////////////
-
- AccessibilityManager manager = AccessibilityManager.Instance;
- manager.SetFocusOrder(content, ++exampleCount);
- manager.SetAccessibilityAttribute(content,
- AccessibilityManager.AccessibilityAttribute.Label, content.Name);
- manager.SetAccessibilityAttribute(content,
- AccessibilityManager.AccessibilityAttribute.Trait, "Tile");
- manager.SetAccessibilityAttribute(content,
- AccessibilityManager.AccessibilityAttribute.Hint, "You can run this example");
-
- table.AddChild(content, new TableView.CellPosition(row, column));
- }
- }
-
- // You can connect with various Accessibility action signals.
- // AccessibilityManager provides functionality of setting the focus and moving forward and backward.
- // All touch interactions for screen will work with one more finger and tap.
-
- AccessibilityManager.Instance.FocusedViewActivated += OnFocusedView;
- }
-
- TextLabel CreateText()
- {
- TextLabel label = new TextLabel();
- label.MultiLine = true;
- label.HorizontalAlignment = HorizontalAlignment.Center;
- label.VerticalAlignment = VerticalAlignment.Center;
- label.Focusable = true;
- return label;
- }
-
- // Do something with activated View, for example, launching another application.
- private void OnFocusedView(object source, AccessibilityManager.FocusedViewActivatedEventArgs args)
- {
- if (args.View)
- {
- // Here, in the sample, if one finger double tap, the following log will shows in terminal.
- Tizen.Log.Error(tag, "The current focused view is "+ args.View.Name +"\n");
- }
- }
-
- public void Deactivate()
- {
- AccessibilityManager.Instance.FocusedViewActivated -= OnFocusedView;
- if(table) { table.Unparent(); }
- }
- }
-}
tlog.Debug(tag, $"ScrollableBaseScrollTo END (OK)");
}
- [Test]
- [Category("P1")]
- [Description("ScrollableBase OnAccessibilityPan")]
- [Property("SPEC", "Tizen.NUI.Components.ScrollableBase.OnAccessibilityPan M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ScrollableBaseOnAccessibilityPan()
- {
- tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan START");
-
- var testingTarget = new ScrollableBase()
- {
- Size = new Size(100, 2),
- BackgroundColor = Color.Cyan,
- ScrollingDirection = ScrollableBase.Direction.Vertical,
- };
- Assert.IsNotNull(testingTarget, "null handle");
- Assert.IsInstanceOf<ScrollableBase>(testingTarget, "Should return ScrollableBase instance.");
-
- using (PanGesture gesture = new PanGesture())
- {
- try
- {
- testingTarget.OnAccessibilityPan(gesture);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan END (OK)");
- }
-
[Test]
[Category("P1")]
[Description("ScrollableBase Decelerating")]
+++ /dev/null
-
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Accessibility/AccessibilityActionSignal")]
- public class InternalAccessibilityActionSignalTest
- {
- private const string tag = "NUITEST";
- private delegate bool dummyCallback(IntPtr accessibilityManager);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Description("AccessibilityActionSignal constructor")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityActionSignalConstructor()
- {
- tlog.Debug(tag, $"AccessibilityActionSignalConstructor START");
-
- var testingTarget = new AccessibilityActionSignal();
-
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityActionSignal>(testingTarget, "should be an instance of testing target class!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityActionSignalConstructor END (OK)");
- }
-
- [Test]
- [Description("AccessibilityActionSignal Empty")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityActionSignalEmpty()
- {
- tlog.Debug(tag, $"AccessibilityActionSignalEmpty START");
-
- var testingTarget = new AccessibilityActionSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityActionSignal>(testingTarget, "should be an instance of testing target class!");
-
- var result = testingTarget.Empty();
- Assert.IsTrue(result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityActionSignalEmpty END (OK)");
- }
-
- [Test]
- [Description("AccessibilityActionSignal GetConnectionCount")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityActionSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"AccessibilityActionSignal_GetConnectionCount START");
-
- var testingTarget = new AccessibilityActionSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityActionSignal>(testingTarget, "should be an instance of testing target class!");
-
- var result = testingTarget.GetConnectionCount();
- Assert.IsTrue(result == 0, "result should be 0");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityActionSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Description("AccessibilityActionSignal Connection")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityActionSignalConnection()
- {
- tlog.Debug(tag, $"AccessibilityActionSignalConnection START");
-
- var testingTarget = new AccessibilityActionSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityActionSignal>(testingTarget, "should be an instance of testing target class!");
-
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"AccessibilityActionSignalConnection END (OK)");
- }
-
- [Test]
- [Description("AccessibilityActionSignal Disconnection")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityActionSignalDisconnection()
- {
- tlog.Debug(tag, $"AccessibilityActionSignalDisconnection START");
-
- var testingTarget = new AccessibilityActionSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityActionSignal>(testingTarget, "should be an instance of testing target class!");
-
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"AccessibilityActionSignalDisconnection END (OK)");
- }
-
- [Test]
- [Description("AccessibilityActionSignal Emit")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityActionSignalEmit()
- {
- tlog.Debug(tag, $"AccessibilityActionSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new AccessibilityActionSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityActionSignal>(testingTarget, "should be an instance of testing target class!");
-
- testingTarget.Emit(Tizen.NUI.Accessibility.AccessibilityManager.Instance);
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"AccessibilityActionSignalEmit END (OK)");
- }
-
- }
-}
+++ /dev/null
-
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("internal/Accessibility/AccessibilityFocusOvershotSignal")]
- public class InternalAccessibilityFocusOvershotSignalTests
- {
- private const string tag = "NUITEST";
- private delegate bool dummyCallback(IntPtr accessibilityManager);
- private bool OnDummyCallback(IntPtr data)
- {
- return false;
- }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Description("AccessibilityFocusOvershotSignal constructor")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityFocusOvershotSignalConstructor()
- {
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConstructor START");
-
- var testingTarget = new AccessibilityFocusOvershotSignal();
-
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConstructor END (OK)");
- }
-
- [Test]
- [Description("AccessibilityFocusOvershotSignal Empty")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityFocusOvershotSignalEmpty()
- {
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmpty START");
-
- var testingTarget = new AccessibilityFocusOvershotSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");
-
- var result = testingTarget.Empty();
- Assert.IsTrue(result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmpty END (OK)");
- }
-
- [Test]
- [Description("AccessibilityFocusOvershotSignal GetConnectionCount")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityFocusOvershotSignalGetConnectionCount()
- {
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalGetConnectionCount START");
-
- var testingTarget = new AccessibilityFocusOvershotSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");
-
- var result = testingTarget.GetConnectionCount();
- Assert.IsTrue(result == 0, "result should be 0");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalGetConnectionCount END (OK)");
- }
-
- [Test]
- [Description("AccessibilityFocusOvershotSignal Connection")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityFocusOvershotSignalConnection()
- {
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConnection START");
-
- var testingTarget = new AccessibilityFocusOvershotSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");
-
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConnection END (OK)");
- }
-
- [Test]
- [Description("AccessibilityFocusOvershotSignal Disconnection")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityFocusOvershotSignalDisconnection()
- {
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalDisconnection START");
-
- var testingTarget = new AccessibilityFocusOvershotSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");
-
- dummyCallback callback = OnDummyCallback;
- testingTarget.Connect(callback);
- testingTarget.Disconnect(callback);
- testingTarget.Dispose();
-
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalDisconnection END (OK)");
- }
-
- [Test]
- [Description("AccessibilityFocusOvershotSignal Emit")]
- [Property("AUTHOR", "dongsug.song@samsung.com")]
- public void AccessibilityFocusOvershotSignalEmit()
- {
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmit START");
- var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
- var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;
-
- tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");
-
- var testingTarget = new AccessibilityFocusOvershotSignal();
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<AccessibilityFocusOvershotSignal>(testingTarget, "should be an instance of testing target class!");
-
- View dummy = new View();
- testingTarget.Emit(dummy, Accessibility.AccessibilityManager.FocusOvershotDirection.Previous);
-
- testingTarget.Dispose();
- dummy.Dispose();
-
- tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmit END (OK)");
- }
-
- }
-}
tlog.Debug(tag, $"ViewImplOnAccessibilityActivated (OK)");
}
- [Test]
- [Category("P1")]
- [Description("ViewImpl OnAccessibilityValueChange.")]
- [Property("SPEC", "Tizen.NUI.ViewImpl.OnAccessibilityValueChange M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewImplOnAccessibilityValueChange()
- {
- tlog.Debug(tag, $"ViewImplOnAccessibilityValueChange START");
-
- var testingTarget = NDalic.GetImplementation(new View());
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<ViewImpl>(testingTarget, "should be an instance of testing target class!");
-
- var result = testingTarget.OnAccessibilityValueChange(true);
- Assert.IsTrue(!result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"ViewImplOnAccessibilityValueChange (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("ViewImpl OnAccessibilityZoom.")]
- [Property("SPEC", "Tizen.NUI.ViewImpl.OnAccessibilityZoom M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("COVPARAM", "")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void ViewImplOnAccessibilityZoom()
- {
- tlog.Debug(tag, $"ViewImplOnAccessibilityZoom START");
-
- var testingTarget = NDalic.GetImplementation(new View());
- Assert.IsNotNull(testingTarget, "should be not null");
- Assert.IsInstanceOf<ViewImpl>(testingTarget, "should be an instance of testing target class!");
-
- var result = testingTarget.OnAccessibilityZoom();
- Assert.IsTrue(!result);
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"ViewImplOnAccessibilityZoom (OK)");
- }
-
[Test]
[Category("P1")]
[Description("ViewImpl OnKeyboardEnter.")]
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("public/Accessibility/AccessibilityManager")]
- public class PublicAccessibilityManagerTest
- {
- private const string tag = "NUITEST";
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager construcotr.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.AccessibilityManager M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerConstructor()
- {
- tlog.Debug(tag, $"AccessibilityManagerConstructor START");
-
- var testingTarget = new Accessibility.AccessibilityManager();
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"AccessibilityManagerConstructor END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetAccessibilityAttribute.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetAccessibilityAttribute M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetAccessibilityAttribute()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetAccessibilityAttribute START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- try
- {
- using (View view = new View() { Size = new Size(100, 50) })
- {
- testingTarget.SetAccessibilityAttribute(view, Accessibility.AccessibilityManager.AccessibilityAttribute.Label, "label");
- var result = testingTarget.GetAccessibilityAttribute(view, Accessibility.AccessibilityManager.AccessibilityAttribute.Label);
- tlog.Debug(tag, "Attribute : " + result);
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"AccessibilityManagerSetAccessibilityAttribute END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetFocusOrder.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetFocusOrder M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetFocusOrder()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetFocusOrder START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- try
- {
- using (View view = new View() { Size = new Size(100, 50) })
- {
- testingTarget.SetFocusOrder(view, 1);
- var result = testingTarget.GetFocusOrder(view);
- tlog.Debug(tag, "FocusOrder : " + result);
-
- testingTarget.ClearFocus();
- }
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
-
- tlog.Debug(tag, $"AccessibilityManagerSetFocusOrder END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager GenerateNewFocusOrder.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.GenerateNewFocusOrder M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerGenerateNewFocusOrder()
- {
- tlog.Debug(tag, $"AccessibilityManagerGenerateNewFocusOrder START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.GenerateNewFocusOrder();
- tlog.Debug(tag, "New focus order : " + result);
-
- tlog.Debug(tag, $"AccessibilityManagerGenerateNewFocusOrder END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager GetViewByFocusOrder.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.GetViewByFocusOrder M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerGetViewByFocusOrder()
- {
- tlog.Debug(tag, $"AccessibilityManagerGetViewByFocusOrder START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.GetViewByFocusOrder(1);
- tlog.Debug(tag, "New focus order : " + result);
-
- tlog.Debug(tag, $"AccessibilityManagerGetViewByFocusOrder END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetCurrentFocusView.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetCurrentFocusView M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetCurrentFocusView()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetCurrentFocusView START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- using (View view = new View() { Size = new Size(100, 50) })
- {
- var result = testingTarget.SetCurrentFocusView(view);
- tlog.Debug(tag, "Set current focus order : " + result);
- tlog.Debug(tag, "Current focus : " + testingTarget.GetCurrentFocusView());
- tlog.Debug(tag, "Current focus order : " + testingTarget.GetCurrentFocusOrder());
- tlog.Debug(tag, "Current focus group : " + testingTarget.GetCurrentFocusGroup());
-
- testingTarget.Reset();
- }
-
- tlog.Debug(tag, $"AccessibilityManagerSetCurrentFocusView END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager MoveFocusForward.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.MoveFocusForward M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerMoveFocusForward()
- {
- tlog.Debug(tag, $"AccessibilityManagerMoveFocusForward START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- tlog.Debug(tag, "Move focus forwrad : " + testingTarget.MoveFocusForward());
- tlog.Debug(tag, "Move focus backwrad : " + testingTarget.MoveFocusBackward());
-
- tlog.Debug(tag, $"AccessibilityManagerMoveFocusForward END (OK)");
- }
-
-
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetFocusGroup.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetFocusGroup M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetFocusGroup()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetFocusGroup START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- using (View view = new View() { Size = new Size(100, 50) })
- {
- try
- {
- testingTarget.SetFocusGroup(view, true);
- tlog.Debug(tag, "Is focus group : " + testingTarget.IsFocusGroup(view));
- tlog.Debug(tag, "Focus group : " + testingTarget.GetFocusGroup(view));
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"AccessibilityManagerSetFocusGroup END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetGroupMode.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetGroupMode M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetGroupMode()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetGroupMode START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- using (View view = new View() { Size = new Size(100, 50) })
- {
- try
- {
- testingTarget.SetGroupMode(true);
- tlog.Debug(tag, "Group mode : " + testingTarget.GetGroupMode());
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception : Failed!");
- }
- }
-
- tlog.Debug(tag, $"AccessibilityManagerSetGroupMode END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetWrapMode.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetWrapMode M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetWrapMode()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetWrapMode START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- testingTarget.SetWrapMode(true);
- tlog.Debug(tag, "Wrap mode : " + testingTarget.GetWrapMode());
-
- tlog.Debug(tag, $"AccessibilityManagerSetWrapMode END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager SetFocusIndicatorView.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetFocusIndicatorView M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerSetFocusIndicatorView()
- {
- tlog.Debug(tag, $"AccessibilityManagerSetFocusIndicatorView START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- using (View indicator = new View() { Size = new Size(8, 8), Color = Color.Black })
- {
- testingTarget.SetFocusIndicatorView(indicator);
- tlog.Debug(tag, "Group mode : " + testingTarget.GetFocusIndicatorView());
- }
-
- tlog.Debug(tag, $"AccessibilityManagerSetFocusIndicatorView END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager GetReadPosition.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.GetReadPosition M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerGetReadPosition()
- {
- tlog.Debug(tag, $"AccessibilityManagerGetReadPosition START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- using (View view = new View() { Size = new Size(8, 8), Position = new Position(100, 200) })
- {
- testingTarget.SetFocusIndicatorView(view);
- tlog.Debug(tag, "Group mode : " + testingTarget.GetReadPosition());
- }
-
- tlog.Debug(tag, $"AccessibilityManagerGetReadPosition END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager FocusChangedSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusChangedSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerFocusChangedSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerFocusChangedSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.FocusChangedSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerFocusChangedSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager FocusOvershotSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusOvershotSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerFocusOvershotSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerFocusOvershotSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.FocusOvershotSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerFocusOvershotSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager StatusChangedSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.StatusChangedSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerStatusChangedSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerStatusChangedSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.StatusChangedSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerStatusChangedSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionNextSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionNextSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionNextSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerStatusChangedSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionNextSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionNextSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionPreviousSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPreviousSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionPreviousSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionPreviousSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionPreviousSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionPreviousSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionActivateSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionActivateSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionActivateSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionActivateSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionActivateSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionActivateSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionReadSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionReadSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionReadSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionReadSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionReadSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionOverSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionOverSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionOverSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionOverSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionOverSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionOverSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionReadNextSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadNextSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionReadNextSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionReadNextSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionReadNextSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionReadNextSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionReadPreviousSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadPreviousSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionReadPreviousSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionReadPreviousSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionReadPreviousSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionReadPreviousSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionUpSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionUpSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionUpSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionUpSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionUpSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionUpSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionDownSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionDownSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionDownSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionDownSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionDownSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionDownSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionClearFocusSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionClearFocusSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionClearFocusSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionClearFocusSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionClearFocusSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionClearFocusSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionBackSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionBackSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionBackSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionBackSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionBackSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionBackSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionScrollUpSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionScrollUpSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionScrollUpSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionScrollUpSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionScrollUpSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionScrollUpSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionScrollDownSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionScrollDownSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionScrollDownSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionScrollDownSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionScrollDownSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionScrollDownSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionPageLeftSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageLeftSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionPageLeftSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionPageLeftSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionPageLeftSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionPageLeftSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionPageRightSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageRightSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionPageRightSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionPageRightSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionPageRightSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionPageRightSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionPageUpSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageUpSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionPageUpSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionPageUpSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionPageUpSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionPageUpSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionPageDownSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageDownSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionPageDownSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionPageDownSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionPageDownSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionPageDownSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionMoveToFirstSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionMoveToFirstSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionMoveToFirstSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionMoveToFirstSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionMoveToFirstSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionMoveToFirstSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionMoveToLastSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionMoveToLastSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionMoveToLastSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionMoveToLastSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionMoveToLastSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionMoveToLastSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionReadFromTopSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadFromTopSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionReadFromTopSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionReadFromTopSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionReadFromTopSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionReadFromTopSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionReadFromNextSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadFromNextSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionReadFromNextSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionReadFromNextSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionReadFromNextSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionReadFromNextSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionZoomSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionZoomSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionZoomSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionZoomSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionZoomSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionZoomSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionReadPauseResumeSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadPauseResumeSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionReadPauseResumeSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionReadPauseResumeSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionReadPauseResumeSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionReadPauseResumeSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionStartStopSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionStartStopSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionStartStopSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionStartStopSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionStartStopSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionStartStopSignal END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager ActionScrollSignal.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionScrollSignal M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerActionScrollSignal()
- {
- tlog.Debug(tag, $"AccessibilityManagerActionScrollSignal START");
-
- var testingTarget = Accessibility.AccessibilityManager.Instance;
- Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager ");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager>(testingTarget, "Should be an instance of AccessibilityManager type.");
-
- var result = testingTarget.ActionScrollSignal();
- Assert.IsNotNull(result);
-
- tlog.Debug(tag, $"AccessibilityManagerActionScrollSignal END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("public/Accessibility/AccessibilityManagerEvent")]
- public class PublicAccessibilityManagerEventTest
- {
- private const string tag = "NUITEST";
- private Accessibility.AccessibilityManager manager;
-
- private bool OnStatusChanged(object source, EventArgs e) { return true; }
- private bool OnActionNext(object source, EventArgs e) { return true; }
- private bool OnActionPrevious(object source, EventArgs e) { return true; }
- private bool OnActionActivate(object source, EventArgs e) { return true; }
- private bool OnActionRead(object source, EventArgs e) { return true; }
- private bool OnActionOver(object source, EventArgs e) { return true; }
- private bool OnActionReadNext(object source, EventArgs e) { return true; }
- private bool OnActionStartStop(object source, EventArgs e) { return true; }
- private bool OnActionReadPauseResume(object source, EventArgs e) { return true; }
- private bool OnActionZoom(object source, EventArgs e) { return true; }
- private bool OnActionReadFromNext(object source, EventArgs e) { return true; }
- private bool OnActionReadFromTop(object source, EventArgs e) { return true; }
- private bool OnActionMoveToLast(object source, EventArgs e) { return true; }
- private bool OnActionMoveToFirst(object source, EventArgs e) { return true; }
- private bool OnActionPageDown(object source, EventArgs e) { return true; }
- private bool OnActionPageUp(object source, EventArgs e) { return true; }
- private bool OnActionPageRight(object source, EventArgs e) { return true; }
- private bool OnActionPageLeft(object source, EventArgs e) { return true; }
- private bool OnActionScrollDown(object source, EventArgs e) { return true; }
- private bool OnActionScrollUp(object source, EventArgs e) { return true; }
- private bool OnActionBack(object source, EventArgs e) { return true; }
- private bool OnActionClearFocus(object source, EventArgs e) { return true; }
- private bool OnActionDown(object source, EventArgs e) { return true; }
- private bool OnActionUp(object source, EventArgs e) { return true; }
- private bool OnActionReadPrevious(object source, EventArgs e) { return true; }
- private void OnFocusOvershot(object sender, Accessibility.AccessibilityManager.FocusOvershotEventArgs e) { }
- private void OnFocusedViewActivated(object sender, Accessibility.AccessibilityManager.FocusedViewActivatedEventArgs e) { }
- private void OnFocusChanged(object sender, Accessibility.AccessibilityManager.FocusChangedEventArgs e) { }
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
-
- manager = Accessibility.AccessibilityManager.Instance;
- }
-
- [TearDown]
- public void Destroy()
- {
- manager.Dispose();
- manager = null;
-
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("AccessibilityManager events.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.StatusChanged... A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void AccessibilityManagerEvents()
- {
- tlog.Debug(tag, $"AccessibilityManagerEvents START");
-
- manager.StatusChanged += OnStatusChanged;
- manager.StatusChanged -= OnStatusChanged;
-
- manager.ActionNext += OnActionNext;
- manager.ActionNext -= OnActionNext;
-
- manager.ActionPrevious += OnActionPrevious;
- manager.ActionPrevious -= OnActionPrevious;
-
- manager.ActionActivate += OnActionActivate;
- manager.ActionActivate -= OnActionActivate;
-
- manager.ActionRead += OnActionRead;
- manager.ActionRead -= OnActionRead;
-
- manager.ActionOver += OnActionOver;
- manager.ActionOver -= OnActionOver;
-
- manager.ActionReadNext += OnActionReadNext;
- manager.ActionReadNext -= OnActionReadNext;
-
- manager.ActionReadPrevious += OnActionReadPrevious;
- manager.ActionReadPrevious -= OnActionReadPrevious;
-
- manager.ActionUp += OnActionUp;
- manager.ActionUp -= OnActionUp;
-
- manager.ActionDown += OnActionDown;
- manager.ActionDown -= OnActionDown;
-
- manager.FocusOvershot += OnFocusOvershot;
- manager.FocusOvershot -= OnFocusOvershot;
-
- manager.ActionClearFocus += OnActionClearFocus;
- manager.ActionClearFocus -= OnActionClearFocus;
-
- manager.ActionBack += OnActionBack;
- manager.ActionBack -= OnActionBack;
-
- manager.FocusedViewActivated += OnFocusedViewActivated;
- manager.FocusedViewActivated -= OnFocusedViewActivated;
-
- manager.FocusChanged += OnFocusChanged;
- manager.FocusChanged -= OnFocusChanged;
-
- manager.ActionStartStop += OnActionStartStop;
- manager.ActionStartStop -= OnActionStartStop;
-
- manager.ActionReadPauseResume += OnActionReadPauseResume;
- manager.ActionReadPauseResume -= OnActionReadPauseResume;
-
- manager.ActionReadFromNext += OnActionReadFromNext;
- manager.ActionReadFromNext -= OnActionReadFromNext;
-
- manager.ActionPageDown += OnActionPageDown;
- manager.ActionPageDown -= OnActionPageDown;
-
- manager.ActionZoom += OnActionZoom;
- manager.ActionZoom -= OnActionZoom;
-
- manager.ActionScrollUp += OnActionScrollUp;
- manager.ActionScrollUp -= OnActionScrollUp;
-
- manager.ActionScrollDown += OnActionScrollDown;
- manager.ActionScrollDown -= OnActionScrollDown;
-
- manager.ActionPageLeft += OnActionPageLeft;
- manager.ActionPageLeft -= OnActionPageLeft;
-
- manager.ActionPageRight += OnActionPageRight;
- manager.ActionPageRight -= OnActionPageRight;
-
- manager.ActionReadFromTop += OnActionReadFromTop;
- manager.ActionReadFromTop -= OnActionReadFromTop;
-
- manager.ActionMoveToLast += OnActionMoveToLast;
- manager.ActionMoveToLast -= OnActionMoveToLast;
-
- manager.ActionMoveToFirst += OnActionMoveToFirst;
- manager.ActionMoveToFirst -= OnActionMoveToFirst;
-
- manager.ActionPageUp += OnActionPageUp;
- manager.ActionPageUp -= OnActionPageUp;
-
- tlog.Debug(tag, $"AccessibilityManagerEvents END (OK)");
- }
- }
-}
+++ /dev/null
-using global::System;
-using NUnit.Framework;
-using NUnit.Framework.TUnit;
-using Tizen.NUI.Components;
-using Tizen.NUI.BaseComponents;
-
-namespace Tizen.NUI.Devel.Tests
-{
- using tlog = Tizen.Log;
-
- [TestFixture]
- [Description("public/Accessibility/AccessibilityManagerEventArgs")]
- public class PublicAccessibilityManagerEventArgsTest
- {
- private const string tag = "NUITEST";
-
- [SetUp]
- public void Init()
- {
- tlog.Info(tag, "Init() is called!");
- }
-
- [TearDown]
- public void Destroy()
- {
- tlog.Info(tag, "Destroy() is called!");
- }
-
- [Test]
- [Category("P1")]
- [Description("FocusChangedEventArgs ViewCurrent.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusChangedEventArgs.ViewCurrent A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void FocusChangedEventArgsViewCurrent()
- {
- tlog.Debug(tag, $"FocusChangedEventArgsViewCurrent START");
-
- var testingTarget = new Accessibility.AccessibilityManager.FocusChangedEventArgs();
- Assert.IsNotNull(testingTarget, "Can't create success object FocusChangedEventArgs");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager.FocusChangedEventArgs>(testingTarget, "Should be an instance of FocusChangedEventArgs type.");
-
- using (View current = new View() { Size = new Size(100, 50) })
- {
- testingTarget.ViewCurrent = current;
- tlog.Debug(tag, "ViewCurrent : " + testingTarget.ViewCurrent);
- }
-
- using (View next = new View() { Size = new Size(100, 50) })
- {
- testingTarget.ViewNext = next;
- tlog.Debug(tag, "ViewNext : " + testingTarget.ViewNext);
- }
-
- tlog.Debug(tag, $"FocusChangedEventArgsViewCurrent END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("FocusedViewActivatedEventArgs View.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusedViewActivatedEventArgs.View A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void FocusedViewActivatedEventArgsView()
- {
- tlog.Debug(tag, $"FocusedViewActivatedEventArgsView START");
-
- var testingTarget = new Accessibility.AccessibilityManager.FocusedViewActivatedEventArgs();
- Assert.IsNotNull(testingTarget, "Can't create success object FocusedViewActivatedEventArgs");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager.FocusedViewActivatedEventArgs>(testingTarget, "Should be an instance of FocusedViewActivatedEventArgs type.");
-
- using (View view = new View() { Size = new Size(100, 50) })
- {
- testingTarget.View = view;
- tlog.Debug(tag, "View : " + testingTarget.View);
- }
-
- tlog.Debug(tag, $"FocusedViewActivatedEventArgsView END (OK)");
- }
-
- [Test]
- [Category("P1")]
- [Description("FocusOvershotEventArgs CurrentFocusedView.")]
- [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusOvershotEventArgs.CurrentFocusedView A")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "PRW")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void FocusOvershotEventArgsViewCurrentFocusedView()
- {
- tlog.Debug(tag, $"FocusOvershotEventArgsCurrentFocusedView START");
-
- var testingTarget = new Accessibility.AccessibilityManager.FocusOvershotEventArgs();
- Assert.IsNotNull(testingTarget, "Can't create success object FocusOvershotEventArgs");
- Assert.IsInstanceOf<Accessibility.AccessibilityManager.FocusOvershotEventArgs>(testingTarget, "Should be an instance of FocusOvershotEventArgs type.");
-
- using (View view = new View() { Size = new Size(100, 50) })
- {
- testingTarget.CurrentFocusedView = view;
- tlog.Debug(tag, "CurrentFocusedView : " + testingTarget.CurrentFocusedView);
- }
-
- testingTarget.FocusOvershotDirection = Accessibility.AccessibilityManager.FocusOvershotDirection.Next;
- tlog.Debug(tag, "FocusOvershotDirection : " + testingTarget.FocusOvershotDirection);
-
- tlog.Debug(tag, $"FocusOvershotEventArgsCurrentFocusedView END (OK)");
- }
- }
-}
base.AccessibilityDoAction(name);
}
- public void MyOnAccessibilityPan(PanGesture gestures)
- {
- base.OnAccessibilityPan(gestures);
- }
-
- public void MyOnAccessibilityValueChange(bool isIncrease)
- {
- base.OnAccessibilityValueChange(isIncrease);
- }
-
- public void MyOnAccessibilityZoom()
- {
- base.OnAccessibilityZoom();
- }
-
public void MyDisableGestureDetection(Gesture.GestureType type)
{
base.DisableGestureDetection(type);
testingTarget.Dispose();
tlog.Debug(tag, $"CustomViewAccessibilityDoAction END (OK)");
}
-
- [Test]
- [Category("P1")]
- [Description("CustomView OnAccessibilityPan.")]
- [Property("SPEC", "Tizen.NUI.CustomView.OnAccessibilityPan M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "guowei.wang@samsung.com")]
- public void CustomViewOnAccessibilityPan()
- {
- tlog.Debug(tag, $"CustomViewOnAccessibilityPan START");
-
- var testingTarget = new MyCustomView("CustomView", CustomViewBehaviour.RequiresKeyboardNavigationSupport);
- Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
- Assert.IsInstanceOf<CustomView>(testingTarget, "Should be an instance of CustomView type.");
-
- using (View view = new View())
- {
- try
- {
- testingTarget.MyOnAccessibilityPan(new PanGesture(view.SwigCPtr.Handle, false));
- testingTarget.MyOnAccessibilityValueChange(false);
- testingTarget.MyOnAccessibilityZoom();
- testingTarget.MyDisableGestureDetection(Gesture.GestureType.LongPress);
- }
- catch (Exception e)
- {
- tlog.Debug(tag, e.Message.ToString());
- Assert.Fail("Caught Exception: Failed!");
- }
- }
-
- testingTarget.Dispose();
- tlog.Debug(tag, $"CustomViewDispose END (OK)");
- }
}
}