2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21 using System.ComponentModel;
26 /// Provides the functionality of handling keyboard navigation and maintaining the two-dimensional keyboard focus chain.<br />
27 /// It provides functionality of setting the focus and moving the focus in four directions( i.e., left, right, up, and down).<br />
28 /// It also draws a highlight for the focused view and sends an event when the focus is changed.<br />
30 /// <since_tizen> 3 </since_tizen>
31 public class FocusManager : BaseHandle
33 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34 private CustomAlgorithmInterfaceWrapper _customAlgorithmInterfaceWrapper;
36 internal FocusManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.FocusManager_SWIGUpcast(cPtr), cMemoryOwn)
38 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
41 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FocusManager obj)
43 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
47 /// To make the FocusManager instance be disposed.
49 /// Please DO NOT use! This will be deprecated!
50 /// Dispose() method in Singletone classes (ex: FocusManager, StyleManager, VisualFactory, IMFManager, TtsPlayer, Window) is not required.
51 /// Because it is Sigletone, so it is alive for one thread until the NUI is terminated, so it never be disposed.
52 /// <since_tizen> 3 </since_tizen>
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 protected override void Dispose(DisposeTypes type)
61 if (type == DisposeTypes.Explicit)
64 //Release your own managed resources here.
65 //You should release all of your own disposable objects here.
68 //Release your own unmanaged resources here.
69 //You should not access any managed member here except static instance.
70 //because the execution order of Finalizes is non-deterministic.
72 if (_focusedViewEnterKeyEventCallback2 != null)
74 FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback2);
77 if (_focusedViewEnterKeyEventCallback != null)
79 FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback);
82 if (_focusGroupChangedEventCallback != null)
84 FocusGroupChangedSignal().Disconnect(_focusGroupChangedEventCallback);
87 if (_focusChangedEventCallback != null)
89 FocusChangedSignal().Disconnect(_focusChangedEventCallback);
92 if (_preFocusChangeCallback != null)
94 PreFocusChangeSignal().Disconnect(_preFocusChangeCallback);
97 if (swigCPtr.Handle != global::System.IntPtr.Zero)
102 NDalicManualPINVOKE.delete_FocusManager(swigCPtr);
104 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
112 /// Event arguments that passed via the PreFocusChange signal.
114 /// <since_tizen> 3 </since_tizen>
115 public class PreFocusChangeEventArgs : EventArgs
117 private View _current;
118 private View _proposed;
119 private View.FocusDirection _direction;
122 /// The current focus view.
124 /// <since_tizen> 3 </since_tizen>
125 public View CurrentView
138 /// The proposed view.
140 /// <since_tizen> 3 </since_tizen>
141 public View ProposedView
154 /// The focus move direction.
156 /// <since_tizen> 3 </since_tizen>
157 public View.FocusDirection Direction
170 private EventHandlerWithReturnType<object, PreFocusChangeEventArgs, View> _preFocusChangeEventHandler;
171 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
172 internal delegate IntPtr PreFocusChangeEventCallback(IntPtr current, IntPtr proposed, View.FocusDirection direction);
173 private PreFocusChangeEventCallback _preFocusChangeCallback;
176 /// PreFocusChange will be triggered before the focus is going to be changed.<br />
177 /// The FocusManager makes the best guess for which view to focus towards the given direction, but applications might want to change that.<br />
178 /// By connecting with this event, they can check the proposed view to focus and return a different view if they wish.<br />
179 /// This event is only triggered when the navigation key is pressed and KeyboardFocusManager tries to move the focus automatically.<br />
180 /// It won't be emitted for focus movement by calling the SetCurrentFocusView directly.<br />
182 /// <since_tizen> 3 </since_tizen>
183 public event EventHandlerWithReturnType<object, PreFocusChangeEventArgs, View> PreFocusChange
187 if (_preFocusChangeEventHandler == null)
189 _preFocusChangeCallback = OnPreFocusChange;
190 PreFocusChangeSignal().Connect(_preFocusChangeCallback);
192 _preFocusChangeEventHandler += value;
196 _preFocusChangeEventHandler -= value;
197 if (_preFocusChangeEventHandler == null && PreFocusChangeSignal().Empty() == false)
199 PreFocusChangeSignal().Disconnect(_preFocusChangeCallback);
204 private IntPtr OnPreFocusChange(IntPtr current, IntPtr proposed, View.FocusDirection direction)
207 PreFocusChangeEventArgs e = new PreFocusChangeEventArgs();
209 if (current != global::System.IntPtr.Zero)
211 e.CurrentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
213 if (proposed != global::System.IntPtr.Zero)
215 e.ProposedView = Registry.GetManagedBaseHandleFromNativePtr(proposed) as View;
217 e.Direction = direction;
219 if (_preFocusChangeEventHandler != null)
221 view = _preFocusChangeEventHandler(this, e);
226 return view.GetPtrfromView();
230 //if (e.ProposedView) return proposed;
231 //else return current;
232 return current; //xb.teng
237 /// Event arguments that passed via the FocusChanged signal.
239 /// <since_tizen> 3 </since_tizen>
240 public class FocusChangedEventArgs : EventArgs
242 private View _current;
246 /// The current focus view.
248 /// <since_tizen> 3 </since_tizen>
249 public View CurrentView
261 /// The next focus view.
263 /// <since_tizen> 3 </since_tizen>
277 private EventHandler<FocusChangedEventArgs> _focusChangedEventHandler;
278 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
279 internal delegate void FocusChangedEventCallback(IntPtr current, IntPtr next);
280 private FocusChangedEventCallback _focusChangedEventCallback;
283 /// The FocusGroupChanged will be triggered after the current focused view has been changed.
285 /// <since_tizen> 3 </since_tizen>
286 public event EventHandler<FocusChangedEventArgs> FocusChanged
290 if (_focusChangedEventCallback == null)
292 _focusChangedEventCallback = OnFocusChanged;
293 FocusChangedSignal().Connect(_focusChangedEventCallback);
295 _focusChangedEventHandler += value;
299 _focusChangedEventHandler -= value;
301 if (_focusChangedEventCallback == null && FocusChangedSignal().Empty() == false)
303 FocusChangedSignal().Disconnect(_focusChangedEventCallback);
308 private void OnFocusChanged(IntPtr current, IntPtr next)
310 FocusChangedEventArgs e = new FocusChangedEventArgs();
312 e.CurrentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
313 e.NextView = Registry.GetManagedBaseHandleFromNativePtr(next) as View;
315 if (_focusChangedEventHandler != null)
317 _focusChangedEventHandler(this, e);
322 /// Event arguments that passed via the FocusGroupChanged signal.
324 /// <since_tizen> 3 </since_tizen>
325 public class FocusGroupChangedEventArgs : EventArgs
327 private View _current;
328 private bool _forwardDirection;
331 /// The current focus view.
333 /// <since_tizen> 3 </since_tizen>
334 public View CurrentView
347 /// The forward direction.
349 /// <since_tizen> 3 </since_tizen>
350 public bool ForwardDirection
354 return _forwardDirection;
358 _forwardDirection = value;
363 private EventHandler<FocusGroupChangedEventArgs> _focusGroupChangedEventHandler;
364 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
365 private delegate void FocusGroupChangedEventCallback(IntPtr current, bool forwardDirection);
366 private FocusGroupChangedEventCallback _focusGroupChangedEventCallback;
369 /// The FocusGroupChanged will be triggered when the focus group has been changed.<br />
370 /// If the current focus group has a parent layout control, the FocusManager will make the best guess for the next focus group to move the focus to in the given direction (forward or backward).<br />
371 /// If not, the application has to set the new focus.<br />
373 /// <since_tizen> 3 </since_tizen>
374 public event EventHandler<FocusGroupChangedEventArgs> FocusGroupChanged
378 if (_focusGroupChangedEventCallback == null)
380 _focusGroupChangedEventCallback = OnFocusGroupChanged;
381 FocusGroupChangedSignal().Connect(_focusGroupChangedEventCallback);
383 _focusGroupChangedEventHandler += value;
387 _focusGroupChangedEventHandler -= value;
389 if (_focusGroupChangedEventCallback == null && FocusGroupChangedSignal().Empty() == false)
391 FocusGroupChangedSignal().Disconnect(_focusGroupChangedEventCallback);
396 private void OnFocusGroupChanged(IntPtr current, bool forwardDirection)
398 FocusGroupChangedEventArgs e = new FocusGroupChangedEventArgs();
400 e.CurrentView = Registry.GetManagedBaseHandleFromNativePtr(current) as View;
401 e.ForwardDirection = forwardDirection;
403 if (_focusGroupChangedEventHandler != null)
405 _focusGroupChangedEventHandler(this, e);
410 /// Event arguments that passed via the FocusedViewEnterKey signal.
412 /// <since_tizen> 3 </since_tizen>
413 public class FocusedViewActivatedEventArgs : EventArgs
420 /// <since_tizen> 3 </since_tizen>
434 private EventHandler<FocusedViewActivatedEventArgs> _focusedViewEnterKeyEventHandler;
435 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
436 private delegate void FocusedViewEnterKeyEventCallback(IntPtr view);
437 private FocusedViewEnterKeyEventCallback _focusedViewEnterKeyEventCallback;
440 /// The FocusedViewActivated will be triggered when the current focused view has the enter key pressed on it.
442 /// <since_tizen> 3 </since_tizen>
443 public event EventHandler<FocusedViewActivatedEventArgs> FocusedViewActivated
447 if (_focusedViewEnterKeyEventCallback == null)
449 _focusedViewEnterKeyEventCallback = OnFocusedViewEnterKey;
450 FocusedViewEnterKeySignal().Connect(_focusedViewEnterKeyEventCallback);
452 _focusedViewEnterKeyEventHandler += value;
456 _focusedViewEnterKeyEventHandler -= value;
458 if (_focusedViewEnterKeyEventCallback != null && FocusedViewEnterKeySignal().Empty() == false)
460 FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback);
465 private void OnFocusedViewEnterKey(IntPtr view)
467 FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
469 e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
471 if (_focusedViewEnterKeyEventHandler != null)
473 _focusedViewEnterKeyEventHandler(this, e);
478 internal FocusManager() : this(NDalicManualPINVOKE.new_FocusManager(), true)
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483 internal static FocusManager Get()
485 FocusManager ret = new FocusManager(NDalicManualPINVOKE.FocusManager_Get(), true);
486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 /// Moves the keyboard focus to the given view.<br />
492 /// Only one view can be focused at the same time.<br />
493 /// The view must be in the stage already and keyboard focusable.<br />
495 /// <param name="view">The view to be focused.</param>
496 /// <returns>Whether the focus is successful or not.</returns>
497 /// <since_tizen> 3 </since_tizen>
498 public bool SetCurrentFocusView(View view)
502 throw new ArgumentNullException("the target view should not be null");
505 bool ret = NDalicManualPINVOKE.FocusManager_SetCurrentFocusActor(swigCPtr, View.getCPtr(view));
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 /// Gets the current focused view.
513 /// <returns>A handle to the current focused view or an empty handle if no view is focused.</returns>
514 /// <since_tizen> 3 </since_tizen>
515 public View GetCurrentFocusView()
517 IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetCurrentFocusActor(swigCPtr);
519 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
524 /// Moves the focus to the next focusable view in the focus chain in the given direction (according to the focus traversal order).
526 /// <param name="direction">The direction of the focus movement.</param>
527 /// <returns>True if the movement was successful.</returns>
528 /// <since_tizen> 3 </since_tizen>
529 public bool MoveFocus(View.FocusDirection direction)
531 bool ret = NDalicManualPINVOKE.FocusManager_MoveFocus(swigCPtr, (int)direction);
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 /// Clears the focus from the current focused view if any, so that no view is focused in the focus chain.<br />
538 /// It will emit the FocusChanged event without the current focused view.<br />
540 /// <since_tizen> 3 </since_tizen>
541 public void ClearFocus()
543 NDalicManualPINVOKE.FocusManager_ClearFocus(swigCPtr);
544 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
548 /// Move the focus to previous focused view.
550 /// <since_tizen> 3 </since_tizen>
551 public void MoveFocusBackward()
553 NDalicManualPINVOKE.FocusManager_MoveFocusBackward(swigCPtr);
554 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 /// Gets or sets the status of whether the focus movement should be looped within the same focus group.<br />
559 /// The focus movement is not looped by default.<br />
561 /// <since_tizen> 3 </since_tizen>
562 public bool FocusGroupLoop
566 SetFocusGroupLoop(value);
570 return GetFocusGroupLoop();
574 internal void SetFocusGroupLoop(bool enabled)
576 NDalicManualPINVOKE.FocusManager_SetFocusGroupLoop(swigCPtr, enabled);
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 internal bool GetFocusGroupLoop()
582 bool ret = NDalicManualPINVOKE.FocusManager_GetFocusGroupLoop(swigCPtr);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 /// Sets whether the view is a focus group that can limit the scope of the focus movement to its child views in the focus chain.<br />
589 /// Layout controls set themselves as focus groups by default.<br />
591 /// <param name="view">The view to be set as a focus group.</param>
592 /// <param name="isFocusGroup">Whether to set the view as a focus group or not.</param>
593 /// <since_tizen> 3 </since_tizen>
594 public void SetAsFocusGroup(View view, bool isFocusGroup)
596 NDalicManualPINVOKE.FocusManager_SetAsFocusGroup(swigCPtr, View.getCPtr(view), isFocusGroup);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 /// Checks whether the view is set as a focus group or not.
603 /// <param name="view">The view to be checked.</param>
604 /// <returns>Whether the view is set as a focus group.</returns>
605 /// <since_tizen> 3 </since_tizen>
606 public bool IsFocusGroup(View view)
608 bool ret = NDalicManualPINVOKE.FocusManager_IsFocusGroup(swigCPtr, View.getCPtr(view));
609 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
614 /// Returns the closest ancestor of the given view that is a focus group.
616 /// <param name="view">The view to be checked for its focus group.</param>
617 /// <returns>The focus group the given view belongs to or an empty handle if the given view.</returns>
618 /// <since_tizen> 3 </since_tizen>
619 public View GetFocusGroup(View view)
621 IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, View.getCPtr(view));
623 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
626 /*View ret = new View(NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, View.getCPtr(view)), true);
627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628 if (ret.HasBody() == false)
637 /// Gets or sets the focus indicator view.<br />
638 /// This will replace the default focus indicator view in the FocusManager and will be added to the focused view as a highlight.<br />
640 /// <since_tizen> 3 </since_tizen>
641 public View FocusIndicator
645 SetFocusIndicatorView(value);
649 return GetFocusIndicatorView();
653 internal void SetFocusIndicatorView(View indicator)
655 NDalicManualPINVOKE.FocusManager_SetFocusIndicatorActor(swigCPtr, View.getCPtr(indicator));
656 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
659 internal View GetFocusIndicatorView()
661 IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetFocusIndicatorActor(swigCPtr);
663 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
669 /// Provides the implementation of a custom focus algorithm interface to allow the application to define the focus logic.<br />
671 /// <param name="arg0">The user's implementation of ICustomFocusAlgorithm.</param>
672 /// <since_tizen> 3 </since_tizen>
673 public void SetCustomAlgorithm(ICustomFocusAlgorithm arg0)
675 _customAlgorithmInterfaceWrapper = new CustomAlgorithmInterfaceWrapper();
676 _customAlgorithmInterfaceWrapper.SetFocusAlgorithm(arg0);
678 NDalicPINVOKE.SetCustomAlgorithm(swigCPtr, CustomAlgorithmInterface.getCPtr(_customAlgorithmInterfaceWrapper));
679 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682 internal PreFocusChangeSignal PreFocusChangeSignal()
684 PreFocusChangeSignal ret = new PreFocusChangeSignal(NDalicManualPINVOKE.FocusManager_PreFocusChangeSignal(swigCPtr), false);
685 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
689 internal FocusChangedSignal FocusChangedSignal()
691 FocusChangedSignal ret = new FocusChangedSignal(NDalicManualPINVOKE.FocusManager_FocusChangedSignal(swigCPtr), false);
692 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
696 internal FocusGroupChangedSignal FocusGroupChangedSignal()
698 FocusGroupChangedSignal ret = new FocusGroupChangedSignal(NDalicManualPINVOKE.FocusManager_FocusGroupChangedSignal(swigCPtr), false);
699 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
703 internal ViewSignal FocusedViewEnterKeySignal()
705 ViewSignal ret = new ViewSignal(NDalicManualPINVOKE.FocusManager_FocusedActorEnterKeySignal(swigCPtr), false);
706 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 private static readonly FocusManager instance = FocusManager.Get();
713 /// Gets the singleton of the FocusManager object.
715 /// <since_tizen> 3 </since_tizen>
716 public static FocusManager Instance
725 /// ICustomFocusAlgorithm is used to provide the custom keyboard focus algorithm for retrieving the next focusable view.<br />
726 /// The application can implement the interface and override the keyboard focus behavior.<br />
727 /// If the focus is changing within a layout container, then the layout container is queried first to provide the next focusable view.<br />
728 /// If this does not provide a valid view, then the Keyboard FocusManager will check focusable properties to determine the next focusable actor.<br />
729 /// If focusable properties are not set, then the keyboard FocusManager calls the GetNextFocusableView() method of this interface.<br />
731 /// <since_tizen> 3 </since_tizen>
732 public interface ICustomFocusAlgorithm
735 /// Get the next focus actor.
737 /// <param name="current">The current focus view.</param>
738 /// <param name="proposed">The proposed focus view</param>
739 /// <param name="direction">The focus move direction</param>
740 /// <returns>The next focus actor.</returns>
741 /// <since_tizen> 3 </since_tizen>
742 View GetNextFocusableView(View current, View proposed, View.FocusDirection direction);
745 private class CustomAlgorithmInterfaceWrapper : CustomAlgorithmInterface
747 private FocusManager.ICustomFocusAlgorithm _customFocusAlgorithm;
749 public CustomAlgorithmInterfaceWrapper()
753 public void SetFocusAlgorithm(FocusManager.ICustomFocusAlgorithm customFocusAlgorithm)
755 _customFocusAlgorithm = customFocusAlgorithm;
758 public override View GetNextFocusableView(View current, View proposed, View.FocusDirection direction)
760 return _customFocusAlgorithm.GetNextFocusableView(current, proposed, direction);
766 /// Please do not use! this will be deprecated
768 /// <since_tizen> 3 </since_tizen>
769 /// Please do not use! this will be deprecated.
770 /// Instead please use FocusedViewActivatedEventArgs.
771 [EditorBrowsable(EditorBrowsableState.Never)]
772 public class FocusedViewEnterKeyEventArgs : EventArgs
779 /// <since_tizen> 3 </since_tizen>
793 private EventHandler<FocusedViewEnterKeyEventArgs> _focusedViewEnterKeyEventHandler2;
794 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
795 private delegate void FocusedViewEnterKeyEventCallback2(IntPtr view);
796 private FocusedViewEnterKeyEventCallback2 _focusedViewEnterKeyEventCallback2;
799 /// [Obsolete("Please do not use! this will be deprecated")]
801 /// <since_tizen> 3 </since_tizen>
802 /// Please do not use! this will be deprecated!
803 /// Instead please use FocusedViewActivated.
804 [Obsolete("Please DO NOT use! This will be deprecated, instead please USE Tizen.NUI.FocusManager.FocusedViewActivated!")]
805 [EditorBrowsable(EditorBrowsableState.Never)]
806 public event EventHandler<FocusedViewEnterKeyEventArgs> FocusedViewEnterKeyPressed
810 if (_focusedViewEnterKeyEventCallback2 == null)
812 _focusedViewEnterKeyEventCallback2 = OnFocusedViewEnterKey2;
813 FocusedViewEnterKeySignal().Connect(_focusedViewEnterKeyEventCallback2);
815 _focusedViewEnterKeyEventHandler2 += value;
819 _focusedViewEnterKeyEventHandler2 -= value;
821 if (_focusedViewEnterKeyEventCallback2 != null && FocusedViewEnterKeySignal().Empty() == false)
823 FocusedViewEnterKeySignal().Disconnect(_focusedViewEnterKeyEventCallback2);
828 /// Please do not use! this will be deprecated!
830 /// Please do not use! this will be deprecated!
831 /// Instead please use OnFocusedViewEnterKey.
832 [Obsolete("Please DO NOT use! This will be deprecated, instead please USE Tizen.NUI.FocusManager.OnFocusedViewEnterKey")]
833 [EditorBrowsable(EditorBrowsableState.Never)]
834 private void OnFocusedViewEnterKey2(IntPtr view)
836 FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
838 e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
840 if (_focusedViewEnterKeyEventHandler != null)
842 _focusedViewEnterKeyEventHandler(this, e);