1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
17 using System.Runtime.InteropServices;
18 using System.ComponentModel;
23 /// Specifically manages the ecore input method framework which enables the virtual or hardware keyboards.
25 public class ImfManager : BaseHandle
27 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
29 internal ImfManager(IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ImfManager_SWIGUpcast(cPtr), cMemoryOwn)
31 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfManager obj)
36 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
39 protected override void Dispose(DisposeTypes type)
46 if (type == DisposeTypes.Explicit)
49 //Release your own managed resources here.
50 //You should release all of your own disposable objects here.
54 //Release your own unmanaged resources here.
55 //You should not access any managed member here except static instance.
56 //because the execution order of Finalizes is non-deterministic.
58 if (_keyboardTypeChangedEventCallback != null)
60 KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
63 if (_imfManagerLanguageChangedEventCallback != null)
65 LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
68 if (_imfManagerResizedEventCallback != null)
70 ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
73 if (_imfManagerStatusChangedEventCallback != null)
75 StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
78 if (_imfManagerEventReceivedEventCallback != null)
80 EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
83 if (_imfManagerActivatedEventCallback != null)
85 ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
88 if (swigCPtr.Handle != global::System.IntPtr.Zero)
93 NDalicManualPINVOKE.delete_ImfManager(swigCPtr);
95 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
102 /// This structure is used to pass on data from the IMF regarding predictive text.
104 public class ImfEventData : global::System.IDisposable
106 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
107 protected bool swigCMemOwn;
109 internal ImfEventData(IntPtr cPtr, bool cMemoryOwn)
111 swigCMemOwn = cMemoryOwn;
112 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
115 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfEventData obj)
117 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
120 //A Flag to check who called Dispose(). (By User or DisposeQueue)
121 private bool isDisposeQueued = false;
122 //A Flat to check if it is already disposed.
123 protected bool disposed = false;
128 if (!isDisposeQueued)
130 isDisposeQueued = true;
131 DisposeQueue.Instance.Add(this);
136 /// The dispose pattern.
138 /// <since_tizen> 3 </since_tizen>
139 public void Dispose()
141 //Throw excpetion if Dispose() is called in separate thread.
142 if (!Window.IsInstalled())
144 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
149 Dispose(DisposeTypes.Implicit);
153 Dispose(DisposeTypes.Explicit);
154 System.GC.SuppressFinalize(this);
158 protected virtual void Dispose(DisposeTypes type)
165 if (type == DisposeTypes.Explicit)
168 //Release your own managed resources here.
169 //You should release all of your own disposable objects here.
173 //Release your own unmanaged resources here.
174 //You should not access any managed member here except static instance.
175 //because the execution order of Finalizes is non-deterministic.
177 if (swigCPtr.Handle != IntPtr.Zero)
182 NDalicManualPINVOKE.delete_ImfManager_ImfEventData(swigCPtr);
184 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
190 internal static ImfEventData GetImfEventDataFromPtr(IntPtr cPtr)
192 ImfEventData ret = new ImfEventData(cPtr, false);
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198 /// The default constructor.
200 /// <since_tizen> 3 </since_tizen>
201 public ImfEventData() : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_0(), true)
203 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 /// <param name="aEventName">The name of the event from the IMF.</param>
210 /// <param name="aPredictiveString">The pre-edit or the commit string.</param>
211 /// <param name="aCursorOffset">Start the position from the current cursor position to start deleting characters.</param>
212 /// <param name="aNumberOfChars">The number of characters to delete from the cursorOffset.</param>
213 /// <since_tizen> 3 </since_tizen>
214 public ImfEventData(ImfManager.ImfEvent aEventName, string aPredictiveString, int aCursorOffset, int aNumberOfChars) : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_1((int)aEventName, aPredictiveString, aCursorOffset, aNumberOfChars), true)
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
220 /// The pre-edit or the commit string.
222 //Please do not use! this will be deprecated
223 [EditorBrowsable(EditorBrowsableState.Never)]
224 /// <since_tizen> 3 </since_tizen>
225 public string predictiveString
229 NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
230 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241 /// The pre-edit or the commit string.
243 /// <since_tizen> 4 </since_tizen>
244 public string PredictiveString
248 NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
253 string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
254 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260 /// The name of the event from the IMF.
262 //Please do not use! this will be deprecated
263 [EditorBrowsable(EditorBrowsableState.Never)]
264 public ImfManager.ImfEvent eventName
268 NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280 /// The name of the event from the IMF.
282 /// <since_tizen> 4 </since_tizen>
283 public ImfManager.ImfEvent EventName
287 NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299 /// The start position from the current cursor position to start deleting characters.
301 //Please do not use! this will be deprecated
302 [EditorBrowsable(EditorBrowsableState.Never)]
303 public int cursorOffset
307 NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
312 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
319 /// The start position from the current cursor position to start deleting characters.
321 /// <since_tizen> 4 </since_tizen>
322 public int CursorOffset
326 NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
327 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
332 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338 /// The number of characters to delete from the cursorOffset.
340 //Please do not use! this will be deprecated
341 [EditorBrowsable(EditorBrowsableState.Never)]
342 public int numberOfChars
346 NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
352 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 /// The number of characters to delete from the cursorOffset.
360 /// <since_tizen> 4 </since_tizen>
361 public int NumberOfChars
365 NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
379 /// Data required by the IMF from the callback.
381 public class ImfCallbackData : global::System.IDisposable
383 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
384 protected bool swigCMemOwn;
386 internal IntPtr GetImfCallbackDataPtr()
388 return (IntPtr)swigCPtr;
391 internal ImfCallbackData(IntPtr cPtr, bool cMemoryOwn)
393 swigCMemOwn = cMemoryOwn;
394 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
397 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfCallbackData obj)
399 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
402 //A Flag to check who called Dispose(). (By User or DisposeQueue)
403 private bool isDisposeQueued = false;
404 //A Flat to check if it is already disposed.
405 protected bool disposed = false;
410 if (!isDisposeQueued)
412 isDisposeQueued = true;
413 DisposeQueue.Instance.Add(this);
418 /// The dispose pattern.
420 /// <since_tizen> 3 </since_tizen>
421 public void Dispose()
423 //Throw excpetion if Dispose() is called in separate thread.
424 if (!Window.IsInstalled())
426 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
431 Dispose(DisposeTypes.Implicit);
435 Dispose(DisposeTypes.Explicit);
436 System.GC.SuppressFinalize(this);
440 protected virtual void Dispose(DisposeTypes type)
447 if (type == DisposeTypes.Explicit)
450 //Release your own managed resources here.
451 //You should release all of your own disposable objects here.
455 //Release your own unmanaged resources here.
456 //You should not access any managed member here except static instance.
457 //because the execution order of Finalizes is non-deterministic.
459 if (swigCPtr.Handle != IntPtr.Zero)
464 NDalicManualPINVOKE.delete_ImfManager_ImfCallbackData(swigCPtr);
466 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero);
472 internal static ImfCallbackData GetImfCallbackDataFromPtr(IntPtr cPtr)
474 ImfCallbackData ret = new ImfCallbackData(cPtr, false);
475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480 /// The default constructor.
482 /// <since_tizen> 3 </since_tizen>
483 public ImfCallbackData() : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_0(), true)
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 /// <param name="aUpdate">True if the cursor position needs to be updated.</param>
492 /// <param name="aCursorPosition">The new position of the cursor.</param>
493 /// <param name="aCurrentText">The current text string.</param>
494 /// <param name="aPreeditResetRequired">Flag if preedit reset is required.</param>
495 /// <since_tizen> 3 </since_tizen>
496 public ImfCallbackData(bool aUpdate, int aCursorPosition, string aCurrentText, bool aPreeditResetRequired) : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_1(aUpdate, aCursorPosition, aCurrentText, aPreeditResetRequired), true)
498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
502 /// The current text string.
504 //Please do not use! this will be deprecated
505 [EditorBrowsable(EditorBrowsableState.Never)]
506 public string currentText
510 NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
515 string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 /// The current text string.
524 /// <since_tizen> 4 </since_tizen>
525 public string CurrentText
529 NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
530 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
534 string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
535 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
541 /// The current text string.
543 //Please do not use! this will be deprecated
544 [EditorBrowsable(EditorBrowsableState.Never)]
545 public int cursorPosition
549 NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
550 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
554 int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561 /// The current text string.
563 /// <since_tizen> 4 </since_tizen>
564 public int CursorPosition
568 NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
569 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
574 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 /// If the cursor position needs to be updated.
582 //Please do not use! this will be deprecated
583 [EditorBrowsable(EditorBrowsableState.Never)]
588 NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
589 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600 /// If the cursor position needs to be updated.
602 /// <since_tizen> 4 </since_tizen>
607 NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
608 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
612 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
619 /// Flags if preedit reset is required.
621 //Please do not use! this will be deprecated
622 [EditorBrowsable(EditorBrowsableState.Never)]
623 public bool preeditResetRequired
627 NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
628 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
632 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639 /// Flags if preedit reset is required.
641 /// <since_tizen> 4 </since_tizen>
642 public bool PreeditResetRequired
646 NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
647 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
651 bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
652 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 /// Retrieves a handle to the instance of the ImfManager.
662 /// <returns>A handle to the ImfManager.</returns>
663 /// <since_tizen> 3 </since_tizen>
664 public static ImfManager Get()
666 ImfManager ret = new ImfManager(NDalicManualPINVOKE.ImfManager_Get(), true);
667 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 /// Activates the IMF.<br/>
673 /// It means that the text editing is started somewhere.<br/>
674 /// If the hardware keyboard isn't connected, then it will show the virtual keyboard.
676 /// <since_tizen> 3 </since_tizen>
677 public void Activate()
679 NDalicManualPINVOKE.ImfManager_Activate(swigCPtr);
680 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 /// Deactivates the IMF.<br/>
685 /// It means that the text editing is finished somewhere.
687 /// <since_tizen> 3 </since_tizen>
688 public void Deactivate()
690 NDalicManualPINVOKE.ImfManager_Deactivate(swigCPtr);
691 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
695 /// Gets the restoration status which controls if the keyboard is restored after the focus is lost and then regained.<br/>
696 /// If true, then the keyboard will be restored (activated) after focus is regained.
698 /// <returns>The restoration status.</returns>
699 /// <since_tizen> 3 </since_tizen>
700 public bool RestoreAfterFocusLost()
702 bool ret = NDalicManualPINVOKE.ImfManager_RestoreAfterFocusLost(swigCPtr);
703 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
708 /// Sets the status whether the IMF has to restore the keyboard after losing focus.
710 /// <param name="toggle">True means that keyboard should be restored after the focus is lost and regained.</param>
711 /// <since_tizen> 3 </since_tizen>
712 public void SetRestoreAfterFocusLost(bool toggle)
714 NDalicManualPINVOKE.ImfManager_SetRestoreAfterFocusLost(swigCPtr, toggle);
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
719 /// Sends a message reset to the preedit state or the IMF module.
721 /// <since_tizen> 3 </since_tizen>
722 public new void Reset()
724 NDalicManualPINVOKE.ImfManager_Reset(swigCPtr);
725 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
729 /// Notifies the IMF context that the cursor position has changed, required for features like auto-capitalization.
731 /// <since_tizen> 3 </since_tizen>
732 public void NotifyCursorPosition()
734 NDalicManualPINVOKE.ImfManager_NotifyCursorPosition(swigCPtr);
735 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
739 /// Sets the cursor position stored in VirtualKeyboard, this is required by the IMF context.
741 /// <param name="cursorPosition">The position of the cursor.</param>
742 /// <since_tizen> 3 </since_tizen>
743 public void SetCursorPosition(uint cursorPosition)
745 NDalicManualPINVOKE.ImfManager_SetCursorPosition(swigCPtr, cursorPosition);
746 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
750 /// Gets the cursor position stored in VirtualKeyboard, this is required by the IMF context.
752 /// <returns>The current position of the cursor.</returns>
753 /// <since_tizen> 3 </since_tizen>
754 public uint GetCursorPosition()
756 uint ret = NDalicManualPINVOKE.ImfManager_GetCursorPosition(swigCPtr);
757 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
762 /// A method to store the string required by the IMF, this is used to provide predictive word suggestions.
764 /// <param name="text">The text string surrounding the current cursor point.</param>
765 /// <since_tizen> 3 </since_tizen>
766 public void SetSurroundingText(string text)
768 NDalicManualPINVOKE.ImfManager_SetSurroundingText(swigCPtr, text);
769 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
773 /// Gets the current text string set within the IMF manager, this is used to offer predictive suggestions.
775 /// <returns>The surrounding text.</returns>
776 /// <since_tizen> 3 </since_tizen>
777 public string GetSurroundingText()
779 string ret = NDalicManualPINVOKE.ImfManager_GetSurroundingText(swigCPtr);
780 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
785 /// Notifies the IMF context that text input is set to multiline or not.
787 /// <param name="multiLine">True if multiline text input is used.</param>
788 /// <since_tizen> 3 </since_tizen>
789 public void NotifyTextInputMultiLine(bool multiLine)
791 NDalicManualPINVOKE.ImfManager_NotifyTextInputMultiLine(swigCPtr, multiLine);
792 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
796 /// Returns the text direction of the keyboard's current input language.
798 /// <returns>The direction of the text.</returns>
799 /// <since_tizen> 3 </since_tizen>
800 public ImfManager.TextDirection GetTextDirection()
802 ImfManager.TextDirection ret = (ImfManager.TextDirection)NDalicManualPINVOKE.ImfManager_GetTextDirection(swigCPtr);
803 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
808 /// Provides the size and the position of the keyboard.<br/>
809 /// The position is relative to whether the keyboard is visible or not.<br/>
810 /// If the keyboard is not visible, then the position will be off the screen.<br/>
811 /// If the keyboard is not being shown when this method is called, the keyboard is partially setup (IMFContext) to get/>
812 /// the values then taken down. So ideally, GetInputMethodArea() should be called after Show().
814 /// <returns>Rectangle which is keyboard panel x, y, width, height.</returns>
815 /// <since_tizen> 3 </since_tizen>
816 public Rectangle GetInputMethodArea()
818 Rectangle ret = new Rectangle(NDalicManualPINVOKE.ImfManager_GetInputMethodArea(swigCPtr), true);
819 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
823 internal void ApplyOptions(InputMethodOptions options)
825 NDalicManualPINVOKE.ImfManager_ApplyOptions(swigCPtr, InputMethodOptions.getCPtr(options));
826 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
830 /// Sets up the input-panel specific data.
832 /// <param name="text">The specific data to be set to the input panel.</param>
833 /// <since_tizen> 3 </since_tizen>
834 public void SetInputPanelUserData(string text)
836 NDalicManualPINVOKE.ImfManager_SetInputPanelUserData(swigCPtr, text);
837 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
841 /// Gets the specific data of the current active input panel.
843 /// <param name="text">The specific data to be received from the input panel.</param>
844 /// <since_tizen> 3 </since_tizen>
845 public void GetInputPanelUserData(out string text)
847 NDalicManualPINVOKE.ImfManager_GetInputPanelUserData(swigCPtr, out text);
848 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
852 /// Gets the state of the current active input panel.
854 /// <returns>The state of the input panel.</returns>
855 /// <since_tizen> 3 </since_tizen>
856 public ImfManager.State GetInputPanelState()
858 ImfManager.State ret = (ImfManager.State)NDalicManualPINVOKE.ImfManager_GetInputPanelState(swigCPtr);
859 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
864 /// Sets the return key on the input panel to be visible or invisible.<br/>
865 /// The default is true.
867 /// <param name="visible">True if the return key is visible (enabled), false otherwise.</param>
868 /// <since_tizen> 3 </since_tizen>
869 public void SetReturnKeyState(bool visible)
871 NDalicManualPINVOKE.ImfManager_SetReturnKeyState(swigCPtr, visible);
872 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
876 /// Enables to show the input panel automatically when focused.
878 /// <param name="enabled">If true, the input panel will be shown when focused.</param>
879 /// <since_tizen> 3 </since_tizen>
880 public void AutoEnableInputPanel(bool enabled)
882 NDalicManualPINVOKE.ImfManager_AutoEnableInputPanel(swigCPtr, enabled);
883 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
887 /// Shows the input panel.
889 /// <since_tizen> 3 </since_tizen>
890 public void ShowInputPanel()
892 NDalicManualPINVOKE.ImfManager_ShowInputPanel(swigCPtr);
893 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
897 /// Hides the input panel.
899 /// <since_tizen> 3 </since_tizen>
900 public void HideInputPanel()
902 NDalicManualPINVOKE.ImfManager_HideInputPanel(swigCPtr);
903 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
907 /// Gets the keyboard type.<br/>
908 /// The default keyboard type is SoftwareKeyboard.
910 /// <returns>The keyboard type.</returns>
911 /// <since_tizen> 4 </since_tizen>
912 public ImfManager.KeyboardType GetKeyboardType()
914 ImfManager.KeyboardType ret = (ImfManager.KeyboardType)NDalicManualPINVOKE.ImfManager_GetKeyboardType(swigCPtr);
915 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
920 /// Gets the current language locale of the input panel.<br/>
921 /// For example, en_US, en_GB, en_PH, fr_FR, ...
923 /// <returns>The current language locale of the input panel.</returns>
924 /// <since_tizen> 4 </since_tizen>
925 public string GetInputPanelLocale()
927 string ret = NDalicManualPINVOKE.ImfManager_GetInputPanelLocale(swigCPtr);
928 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
935 /// <since_tizen> 3 </since_tizen>
936 public ImfManager() : this(NDalicManualPINVOKE.new_ImfManager(), true)
938 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
942 /// ImfManager activated event arguments.
944 //Please do not use! this will be deprecated
945 [EditorBrowsable(EditorBrowsableState.Never)]
946 public class ImfManagerActivatedEventArgs : EventArgs
948 public ImfManager ImfManager
955 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
956 private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data);
957 private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback;
958 private event EventHandler<ImfManagerActivatedEventArgs> _imfManagerActivatedEventHandler;
961 /// ImfManager activated event.
963 //Please do not use! this will be deprecated
964 [EditorBrowsable(EditorBrowsableState.Never)]
965 public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
969 if (_imfManagerActivatedEventHandler == null)
971 _imfManagerActivatedEventCallback = OnImfManagerActivated;
972 ActivatedSignal().Connect(_imfManagerActivatedEventCallback);
975 _imfManagerActivatedEventHandler += value;
979 _imfManagerActivatedEventHandler -= value;
981 if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null)
983 ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
988 private void OnImfManagerActivated(global::System.IntPtr data)
990 ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
994 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
997 if (_imfManagerActivatedEventHandler != null)
999 _imfManagerActivatedEventHandler(this, e);
1004 /// ImfManager activated event arguments.
1006 public class ActivatedEventArgs : EventArgs
1008 public ImfManager ImfManager
1015 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1016 private delegate void ActivatedEventCallbackType(IntPtr data);
1017 private ActivatedEventCallbackType _activatedEventCallback;
1018 private event EventHandler<ActivatedEventArgs> _activatedEventHandler;
1021 /// ImfManager activated.
1023 /// <since_tizen> 4 </since_tizen>
1024 public event EventHandler<ActivatedEventArgs> Activated
1028 if (_activatedEventHandler == null)
1030 _activatedEventCallback = OnActivated;
1031 ActivatedSignal().Connect(_activatedEventCallback);
1034 _activatedEventHandler += value;
1038 _activatedEventHandler -= value;
1040 if (_activatedEventHandler == null && _activatedEventCallback != null)
1042 ActivatedSignal().Disconnect(_activatedEventCallback);
1047 private void OnActivated(IntPtr data)
1049 ActivatedEventArgs e = new ActivatedEventArgs();
1053 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1056 if (_activatedEventHandler != null)
1058 _activatedEventHandler(this, e);
1063 /// ImfManager activated signal.
1065 //Please do not use! this will be internal
1066 [EditorBrowsable(EditorBrowsableState.Never)]
1067 public ActivatedSignalType ActivatedSignal()
1069 ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
1070 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1075 /// ImfManager event received event arguments.
1077 //Please do not use! this will be deprecated
1078 [EditorBrowsable(EditorBrowsableState.Never)]
1079 public class ImfManagerEventReceivedEventArgs : EventArgs
1081 public ImfManager ImfManager
1088 private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data);
1089 private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback;
1090 private event EventHandler<ImfManagerEventReceivedEventArgs> _imfManagerEventReceivedEventHandler;
1093 /// ImfManager event received.
1095 //Please do not use! this will be deprecated
1096 [EditorBrowsable(EditorBrowsableState.Never)]
1097 public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
1101 if (_imfManagerEventReceivedEventHandler == null)
1103 _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived;
1104 EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback);
1107 _imfManagerEventReceivedEventHandler += value;
1111 _imfManagerEventReceivedEventHandler -= value;
1113 if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null)
1115 EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
1120 private void OnImfManagerEventReceived(global::System.IntPtr data)
1122 ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
1126 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1129 if (_imfManagerEventReceivedEventHandler != null)
1131 _imfManagerEventReceivedEventHandler(this, e);
1136 /// ImfManager event received event arguments.
1138 public class EventReceivedEventArgs : EventArgs
1140 public ImfManager ImfManager
1146 public ImfEventData ImfEventData
1153 private delegate IntPtr EventReceivedEventCallbackType(IntPtr imfManager, IntPtr imfEventData);
1154 private EventReceivedEventCallbackType _eventReceivedEventCallback;
1155 private event EventHandlerWithReturnType<object, EventReceivedEventArgs, ImfCallbackData> _eventReceivedEventHandler;
1158 /// ImfManager event received.
1160 /// <since_tizen> 4 </since_tizen>
1161 public event EventHandlerWithReturnType<object, EventReceivedEventArgs, ImfCallbackData> EventReceived
1165 if (_eventReceivedEventHandler == null)
1167 _eventReceivedEventCallback = OnEventReceived;
1168 EventReceivedSignal().Connect(_eventReceivedEventCallback);
1171 _eventReceivedEventHandler += value;
1175 _eventReceivedEventHandler -= value;
1177 if (_eventReceivedEventHandler == null && _eventReceivedEventCallback != null)
1179 EventReceivedSignal().Disconnect(_eventReceivedEventCallback);
1184 private IntPtr OnEventReceived(IntPtr imfManager, IntPtr imfEventData)
1186 ImfCallbackData imfCallbackData = null;
1188 EventReceivedEventArgs e = new EventReceivedEventArgs();
1190 if (imfManager != null)
1192 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(imfManager) as ImfManager;
1194 if (imfEventData != null)
1196 e.ImfEventData = ImfEventData.GetImfEventDataFromPtr(imfEventData);
1199 if (_eventReceivedEventHandler != null)
1201 imfCallbackData = _eventReceivedEventHandler(this, e);
1203 if (imfCallbackData != null)
1205 return imfCallbackData.GetImfCallbackDataPtr();
1209 return new ImfCallbackData().GetImfCallbackDataPtr();
1214 /// ImfManager event received signal.
1216 //Please do not use! this will be internal
1217 [EditorBrowsable(EditorBrowsableState.Never)]
1218 public ImfEventSignalType EventReceivedSignal()
1220 ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
1221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1226 /// ImfManager status changed event arguments.
1228 //Please do not use! this will be deprecated
1229 [EditorBrowsable(EditorBrowsableState.Never)]
1230 public class ImfManagerStatusChangedEventArgs : EventArgs
1232 public ImfManager ImfManager
1239 private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data);
1240 private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback;
1241 private event EventHandler<ImfManagerStatusChangedEventArgs> _imfManagerStatusChangedEventHandler;
1244 /// ImfManager status changed.
1246 //Please do not use! this will be deprecated
1247 [EditorBrowsable(EditorBrowsableState.Never)]
1248 public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
1252 if (_imfManagerStatusChangedEventHandler == null)
1254 _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged;
1255 StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback);
1258 _imfManagerStatusChangedEventHandler += value;
1262 _imfManagerStatusChangedEventHandler -= value;
1264 if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null)
1266 StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
1271 private void OnImfManagerStatusChanged(global::System.IntPtr data)
1273 ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
1277 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1280 if (_imfManagerStatusChangedEventHandler != null)
1282 _imfManagerStatusChangedEventHandler(this, e);
1287 /// ImfManager status changed event arguments.
1289 public class StatusChangedEventArgs : EventArgs
1291 public bool StatusChanged
1298 private delegate void StatusChangedEventCallbackType(bool statusChanged);
1299 private StatusChangedEventCallbackType _statusChangedEventCallback;
1300 private event EventHandler<StatusChangedEventArgs> _statusChangedEventHandler;
1303 /// ImfManager status changed.
1305 /// <since_tizen> 4 </since_tizen>
1306 public event EventHandler<StatusChangedEventArgs> StatusChanged
1310 if (_statusChangedEventHandler == null)
1312 _statusChangedEventCallback = OnStatusChanged;
1313 StatusChangedSignal().Connect(_statusChangedEventCallback);
1316 _statusChangedEventHandler += value;
1320 _statusChangedEventHandler -= value;
1322 if (_statusChangedEventHandler == null && _statusChangedEventCallback != null)
1324 StatusChangedSignal().Disconnect(_statusChangedEventCallback);
1329 private void OnStatusChanged(bool statusChanged)
1331 StatusChangedEventArgs e = new StatusChangedEventArgs();
1333 e.StatusChanged = statusChanged;
1335 if (_statusChangedEventHandler != null)
1337 _statusChangedEventHandler(this, e);
1342 /// ImfManager status changed signal.
1344 //Please do not use! this will be internal
1345 [EditorBrowsable(EditorBrowsableState.Never)]
1346 public StatusSignalType StatusChangedSignal()
1348 StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
1349 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1354 /// ImfManager resized event arguments.
1356 //Please do not use! this will be deprecated
1357 [EditorBrowsable(EditorBrowsableState.Never)]
1358 public class ImfManagerResizedEventArgs : EventArgs
1360 public ImfManager ImfManager
1367 private delegate void ImfManagerResizedEventCallbackType(IntPtr data);
1368 private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback;
1369 private event EventHandler<ImfManagerResizedEventArgs> _imfManagerResizedEventHandler;
1372 /// ImfManager resized event.
1374 //Please do not use! this will be deprecated
1375 [EditorBrowsable(EditorBrowsableState.Never)]
1376 public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
1380 if (_imfManagerResizedEventHandler == null)
1382 _imfManagerResizedEventCallback = OnImfManagerResized;
1383 ResizedSignal().Connect(_imfManagerResizedEventCallback);
1386 _imfManagerResizedEventHandler += value;
1390 _imfManagerResizedEventHandler -= value;
1392 if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null)
1394 ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
1399 private void OnImfManagerResized(IntPtr data)
1401 ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
1405 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1408 if (_imfManagerResizedEventHandler != null)
1410 _imfManagerResizedEventHandler(this, e);
1414 private delegate void ResizedEventCallbackType();
1415 private ResizedEventCallbackType _resizedEventCallback;
1416 private event EventHandler _resizedEventHandler;
1419 /// ImfManager resized.
1421 /// <since_tizen> 4 </since_tizen>
1422 public event EventHandler Resized
1426 if (_resizedEventHandler == null)
1428 _resizedEventCallback = OnResized;
1429 ResizedSignal().Connect(_resizedEventCallback);
1432 _resizedEventHandler += value;
1436 _resizedEventHandler -= value;
1438 if (_resizedEventHandler == null && _resizedEventCallback != null)
1440 ResizedSignal().Disconnect(_resizedEventCallback);
1445 private void OnResized()
1447 if (_resizedEventHandler != null)
1449 _resizedEventHandler(this, null);
1454 /// ImfManager resized signal.
1456 //Please do not use! this will be internal
1457 [EditorBrowsable(EditorBrowsableState.Never)]
1458 public ImfVoidSignalType ResizedSignal()
1460 ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
1461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1466 /// ImfManager language changed event arguments.
1468 //Please do not use! this will be deprecated
1469 [EditorBrowsable(EditorBrowsableState.Never)]
1470 public class ImfManagerLanguageChangedEventArgs : EventArgs
1472 public ImfManager ImfManager
1479 private delegate void ImfManagerLanguageChangedEventCallbackType(IntPtr data);
1480 private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback;
1481 private event EventHandler<ImfManagerLanguageChangedEventArgs> _imfManagerLanguageChangedEventHandler;
1484 /// ImfManager language changed event.
1486 //Please do not use! this will be deprecated
1487 [EditorBrowsable(EditorBrowsableState.Never)]
1488 public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
1492 if (_imfManagerLanguageChangedEventHandler == null)
1494 _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged;
1495 LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback);
1498 _imfManagerLanguageChangedEventHandler += value;
1502 _imfManagerLanguageChangedEventHandler -= value;
1504 if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null)
1506 LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
1511 private void OnImfManagerLanguageChanged(IntPtr data)
1513 ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
1517 e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
1520 if (_imfManagerLanguageChangedEventHandler != null)
1522 _imfManagerLanguageChangedEventHandler(this, e);
1526 private delegate void LanguageChangedEventCallbackType();
1527 private LanguageChangedEventCallbackType _languageChangedEventCallback;
1528 private event EventHandler _languageChangedEventHandler;
1531 /// ImfManager language changed.
1533 /// <since_tizen> 4 </since_tizen>
1534 public event EventHandler LanguageChanged
1538 if (_languageChangedEventHandler == null)
1540 _languageChangedEventCallback = OnLanguageChanged;
1541 LanguageChangedSignal().Connect(_languageChangedEventCallback);
1544 _languageChangedEventHandler += value;
1548 _languageChangedEventHandler -= value;
1550 if (_languageChangedEventHandler == null && _languageChangedEventCallback != null)
1552 LanguageChangedSignal().Disconnect(_languageChangedEventCallback);
1557 private void OnLanguageChanged()
1559 if (_languageChangedEventHandler != null)
1561 _languageChangedEventHandler(this, null);
1566 /// ImfManager language changed signal.
1568 //Please do not use! this will be internal
1569 [EditorBrowsable(EditorBrowsableState.Never)]
1570 public ImfVoidSignalType LanguageChangedSignal()
1572 ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
1573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1578 /// ImfManager keyboard type changed event arguments.
1580 public class KeyboardTypeChangedEventArgs : EventArgs
1582 public KeyboardType KeyboardType
1589 private delegate void KeyboardTypeChangedEventCallbackType(KeyboardType type);
1590 private KeyboardTypeChangedEventCallbackType _keyboardTypeChangedEventCallback;
1591 private event EventHandler<KeyboardTypeChangedEventArgs> _keyboardTypeChangedEventHandler;
1594 /// ImfManager keyboard type changed.
1596 /// <since_tizen> 4 </since_tizen>
1597 public event EventHandler<KeyboardTypeChangedEventArgs> KeyboardTypeChanged
1601 if (_keyboardTypeChangedEventHandler == null)
1603 _keyboardTypeChangedEventCallback = OnKeyboardTypeChanged;
1604 KeyboardTypeChangedSignal().Connect(_keyboardTypeChangedEventCallback);
1607 _keyboardTypeChangedEventHandler += value;
1611 _keyboardTypeChangedEventHandler -= value;
1613 if (_keyboardTypeChangedEventHandler == null && _keyboardTypeChangedEventCallback != null)
1615 KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
1620 private void OnKeyboardTypeChanged(KeyboardType type)
1622 KeyboardTypeChangedEventArgs e = new KeyboardTypeChangedEventArgs();
1624 e.KeyboardType = type;
1626 if (_keyboardTypeChangedEventHandler != null)
1628 _keyboardTypeChangedEventHandler(this, e);
1632 internal KeyboardTypeSignalType KeyboardTypeChangedSignal()
1634 KeyboardTypeSignalType ret = new KeyboardTypeSignalType(NDalicManualPINVOKE.ImfManager_KeyboardTypeChangedSignal(swigCPtr), false);
1635 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1640 /// The direction of the text.
1642 /// <since_tizen> 3 </since_tizen>
1643 public enum TextDirection
1656 /// Events that are generated by the IMF.
1658 /// <since_tizen> 4 </since_tizen>
1659 public enum ImfEvent
1666 /// Pre-Edit changed.
1670 /// Commit recieved.
1674 /// An event to delete a range of characters from the string.
1678 /// An event to query string and the cursor position.
1682 /// Private command sent from the input panel.
1688 /// Enumeration for the state of the input panel.
1690 /// <since_tizen> 4 </since_tizen>
1698 /// Input panel is shown.
1702 /// Input panel is hidden.
1706 /// Input panel in process of being shown.
1712 /// Enumeration for the types of keyboard.
1714 /// <since_tizen> 4 </since_tizen>
1715 public enum KeyboardType
1718 /// Software keyboard (virtual keyboard) is default.
1722 /// Hardware keyboard.