-/** Copyright (c) 2017 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.
-*
-*/
+/*
+ * Copyright(c) 2017 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.Runtime.InteropServices;
+using System.ComponentModel;
namespace Tizen.NUI
{
/// <summary>
- /// Specifically manages the ecore input method framework which enables the virtual or hardware keyboards.
+ /// Specifically manages the input method framework which enables the virtual or hardware keyboards.
/// </summary>
public class ImfManager : BaseHandle
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ /// <param name="type">Dispose Type</param>
+ /// <since_tizen> 3 </since_tizen>
protected override void Dispose(DisposeTypes type)
{
if (disposed)
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
- if (swigCPtr.Handle != IntPtr.Zero)
+ if (_keyboardTypeChangedEventCallback != null)
+ {
+ KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
+ }
+
+ if (_imfManagerLanguageChangedEventCallback != null)
+ {
+ LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
+ }
+
+ if (_imfManagerResizedEventCallback != null)
+ {
+ ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
+ }
+
+ if (_imfManagerStatusChangedEventCallback != null)
+ {
+ StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
+ }
+
+ if (_imfManagerEventReceivedEventCallback != null)
+ {
+ EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
+ }
+
+ if (_imfManagerActivatedEventCallback != null)
+ {
+ ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
+ }
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
{
public class ImfEventData : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ /// <summary>
+ /// swigCMemOwn
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected bool swigCMemOwn;
internal ImfEventData(IntPtr cPtr, bool cMemoryOwn)
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
- //A Flat to check if it is already disposed.
+ /// <summary>
+ /// A Flat to check if it is already disposed.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected bool disposed = false;
-
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
~ImfEventData()
{
if (!isDisposeQueued)
}
/// <summary>
- /// Dispose pattern
+ /// The dispose pattern.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Dispose()
{
//Throw excpetion if Dispose() is called in separate thread.
}
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected virtual void Dispose(DisposeTypes type)
{
if (disposed)
}
/// <summary>
- /// Default Constructor
+ /// The default constructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfEventData() : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Constructor
+ /// The constructor.
/// </summary>
/// <param name="aEventName">The name of the event from the IMF.</param>
- /// <param name="aPredictiveString">The pre-edit or commit string.</param>
- /// <param name="aCursorOffset">Start position from the current cursor position to start deleting characters.</param>
+ /// <param name="aPredictiveString">The pre-edit or the commit string.</param>
+ /// <param name="aCursorOffset">Start the position from the current cursor position to start deleting characters.</param>
/// <param name="aNumberOfChars">The number of characters to delete from the cursorOffset.</param>
+ /// <since_tizen> 3 </since_tizen>
public ImfEventData(ImfManager.ImfEvent aEventName, string aPredictiveString, int aCursorOffset, int aNumberOfChars) : this(NDalicManualPINVOKE.new_ImfManager_ImfEventData__SWIG_1((int)aEventName, aPredictiveString, aCursorOffset, aNumberOfChars), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// The pre-edit or commit string.
+ /// The pre-edit or the commit string.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ /// /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
public string predictiveString
{
set
}
/// <summary>
- /// The pre-edit or commit string.
+ /// The pre-edit or the commit string.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public string PredictiveString
{
set
/// <summary>
/// The name of the event from the IMF.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public ImfManager.ImfEvent eventName
{
set
/// <summary>
/// The name of the event from the IMF.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public ImfManager.ImfEvent EventName
{
set
}
/// <summary>
- /// Start position from the current cursor position to start deleting characters.
+ /// The start position from the current cursor position to start deleting characters.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public int cursorOffset
{
set
}
/// <summary>
- /// Start position from the current cursor position to start deleting characters.
+ /// The start position from the current cursor position to start deleting characters.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public int CursorOffset
{
set
}
/// <summary>
- /// Number of characters to delete from the cursorOffset.
+ /// The number of characters to delete from the cursorOffset.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public int numberOfChars
{
set
}
/// <summary>
- /// Number of characters to delete from the cursorOffset.
+ /// The number of characters to delete from the cursorOffset.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public int NumberOfChars
{
set
}
/// <summary>
- /// Data required by IMF from the callback.
+ /// Data required by the IMF from the callback.
/// </summary>
public class ImfCallbackData : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
+ /// <summary>
+ /// swigCMemOwn
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected bool swigCMemOwn;
internal IntPtr GetImfCallbackDataPtr()
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
- //A Flat to check if it is already disposed.
+ /// <summary>
+ /// A Flat to check if it is already disposed.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected bool disposed = false;
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
~ImfCallbackData()
{
if (!isDisposeQueued)
}
/// <summary>
- /// Dispose pattern
+ /// The dispose pattern.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Dispose()
{
//Throw excpetion if Dispose() is called in separate thread.
}
}
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
protected virtual void Dispose(DisposeTypes type)
{
if (disposed)
}
/// <summary>
- /// Default Constructor
+ /// The default constructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfCallbackData() : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Constructor
+ /// The constructor.
/// </summary>
- /// <param name="aUpdate">True if cursor position needs to be updated.</param>
- /// <param name="aCursorPosition">New position of cursor.</param>
- /// <param name="aCurrentText">Current text string.</param>
+ /// <param name="aUpdate">True if the cursor position needs to be updated.</param>
+ /// <param name="aCursorPosition">The new position of the cursor.</param>
+ /// <param name="aCurrentText">The current text string.</param>
/// <param name="aPreeditResetRequired">Flag if preedit reset is required.</param>
+ /// <since_tizen> 3 </since_tizen>
public ImfCallbackData(bool aUpdate, int aCursorPosition, string aCurrentText, bool aPreeditResetRequired) : this(NDalicManualPINVOKE.new_ImfManager_ImfCallbackData__SWIG_1(aUpdate, aCursorPosition, aCurrentText, aPreeditResetRequired), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Current text string.
+ /// The current text string.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public string currentText
{
set
}
/// <summary>
- /// Current text string.
+ /// The current text string.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public string CurrentText
{
set
}
/// <summary>
- /// Current text string.
+ /// The current text string.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public int cursorPosition
{
set
}
/// <summary>
- /// Current text string.
+ /// The current text string.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public int CursorPosition
{
set
}
/// <summary>
- /// If cursor position needs to be updated.
+ /// If the cursor position needs to be updated.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool update
{
set
}
/// <summary>
- /// If cursor position needs to be updated.
+ /// If the cursor position needs to be updated.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public bool Update
{
set
}
/// <summary>
- /// Flag if preedit reset is required.
+ /// Flags if preedit reset is required.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool preeditResetRequired
{
set
}
/// <summary>
- /// Flag if preedit reset is required.
+ /// Flags if preedit reset is required.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public bool PreeditResetRequired
{
set
}
/// <summary>
- /// Retrieve a handle to the instance of ImfManager.
+ /// Finalize the IMF.<br/>
+ /// </summary>
+ public void Finalize()
+ {
+ NDalicManualPINVOKE.ImfManager_Finalize(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Retrieves a handle to the instance of the ImfManager.
/// </summary>
/// <returns>A handle to the ImfManager.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static ImfManager Get()
{
ImfManager ret = new ImfManager(NDalicManualPINVOKE.ImfManager_Get(), true);
}
/// <summary>
- /// Activate the IMF.<br/>
- /// It means that the text editing is started at somewhere.<br/>
- /// If the H/W keyboard isn't connected then it will show the virtual keyboard.
+ /// Activates the IMF.<br/>
+ /// It means that the text editing is started somewhere.<br/>
+ /// If the hardware keyboard isn't connected, then it will show the virtual keyboard.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Activate()
{
NDalicManualPINVOKE.ImfManager_Activate(swigCPtr);
}
/// <summary>
- /// Deactivate the IMF.<br/>
- /// It means that the text editing is finished at somewhere.
+ /// Deactivates the IMF.<br/>
+ /// It means that the text editing is finished somewhere.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void Deactivate()
{
NDalicManualPINVOKE.ImfManager_Deactivate(swigCPtr);
}
/// <summary>
- /// Get the restoration status, which controls if the keyboard is restored after the focus lost then regained.<br/>
- /// If true then keyboard will be restored (activated) after focus is regained.
+ /// Gets the restoration status which controls if the keyboard is restored after the focus is lost and then regained.<br/>
+ /// If true, then the keyboard will be restored (activated) after focus is regained.
/// </summary>
- /// <returns>Restoration status.</returns>
+ /// <returns>The restoration status.</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool RestoreAfterFocusLost()
{
bool ret = NDalicManualPINVOKE.ImfManager_RestoreAfterFocusLost(swigCPtr);
}
/// <summary>
- /// Set status whether the IMF has to restore the keyboard after losing focus.
+ /// Sets the status whether the IMF has to restore the keyboard after losing focus.
/// </summary>
- /// <param name="toggle">True means that keyboard should be restored after focus lost and regained.</param>
+ /// <param name="toggle">True means that keyboard should be restored after the focus is lost and regained.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetRestoreAfterFocusLost(bool toggle)
{
NDalicManualPINVOKE.ImfManager_SetRestoreAfterFocusLost(swigCPtr, toggle);
}
/// <summary>
- /// Send message reset the pred-edit state / imf module.
+ /// Sends a message reset to the preedit state or the IMF module.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public new void Reset()
{
NDalicManualPINVOKE.ImfManager_Reset(swigCPtr);
}
/// <summary>
- /// Notifies IMF context that the cursor position has changed, required for features like auto-capitalisation.
+ /// Notifies the IMF context that the cursor position has changed, required for features like auto-capitalization.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void NotifyCursorPosition()
{
NDalicManualPINVOKE.ImfManager_NotifyCursorPosition(swigCPtr);
}
/// <summary>
- /// Sets cursor position stored in VirtualKeyboard, this is required by the IMF context.
+ /// Sets the cursor position stored in VirtualKeyboard, this is required by the IMF context.
/// </summary>
- /// <param name="cursorPosition">Position of cursor.</param>
+ /// <param name="cursorPosition">The position of the cursor.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetCursorPosition(uint cursorPosition)
{
NDalicManualPINVOKE.ImfManager_SetCursorPosition(swigCPtr, cursorPosition);
}
/// <summary>
- /// Gets cursor position stored in VirtualKeyboard, this is required by the IMF context.
+ /// Gets the cursor position stored in VirtualKeyboard, this is required by the IMF context.
/// </summary>
- /// <returns>Current position of cursor</returns>
+ /// <returns>The current position of the cursor.</returns>
+ /// <since_tizen> 3 </since_tizen>
public uint GetCursorPosition()
{
uint ret = NDalicManualPINVOKE.ImfManager_GetCursorPosition(swigCPtr);
}
/// <summary>
- /// Method to store the string required by the IMF, this is used to provide predictive word suggestions.
+ /// A method to store the string required by the IMF, this is used to provide predictive word suggestions.
/// </summary>
/// <param name="text">The text string surrounding the current cursor point.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetSurroundingText(string text)
{
NDalicManualPINVOKE.ImfManager_SetSurroundingText(swigCPtr, text);
}
/// <summary>
- /// Gets current text string set within the IMF manager, this is used to offer predictive suggestions.
+ /// Gets the current text string set within the IMF manager, this is used to offer predictive suggestions.
/// </summary>
- /// <returns>Surrounding text.</returns>
+ /// <returns>The surrounding text.</returns>
+ /// <since_tizen> 3 </since_tizen>
public string GetSurroundingText()
{
string ret = NDalicManualPINVOKE.ImfManager_GetSurroundingText(swigCPtr);
}
/// <summary>
- /// Notifies IMF context that text input is set to multi line or not.
+ /// Notifies the IMF context that text input is set to multiline or not.
/// </summary>
/// <param name="multiLine">True if multiline text input is used.</param>
+ /// <since_tizen> 3 </since_tizen>
public void NotifyTextInputMultiLine(bool multiLine)
{
NDalicManualPINVOKE.ImfManager_NotifyTextInputMultiLine(swigCPtr, multiLine);
}
/// <summary>
- /// Returns text direction of the keyboard's current input language.
+ /// Returns the text direction of the keyboard's current input language.
/// </summary>
/// <returns>The direction of the text.</returns>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager.TextDirection GetTextDirection()
{
ImfManager.TextDirection ret = (ImfManager.TextDirection)NDalicManualPINVOKE.ImfManager_GetTextDirection(swigCPtr);
}
/// <summary>
- /// Provides size and position of keyboard.<br/>
- /// Position is relative to whether keyboard is visible or not.<br/>
- /// If keyboard is not visible then position will be off the screen.<br/>
- /// If keyboard is not being shown when this method is called the keyboard is partially setup (IMFContext) to get<br/>
- /// the values then taken down. So ideally GetInputMethodArea() should be called after Show().
+ /// Provides the size and the position of the keyboard.<br/>
+ /// The position is relative to whether the keyboard is visible or not.<br/>
+ /// If the keyboard is not visible, then the position will be off the screen.<br/>
+ /// If the keyboard is not being shown when this method is called, the keyboard is partially setup (IMFContext) to get/>
+ /// the values then taken down. So ideally, GetInputMethodArea() should be called after Show().
/// </summary>
- /// <returns>Rectangle which is keyboard panel x, y, width, height</returns>
+ /// <returns>Rectangle which is keyboard panel x, y, width, height.</returns>
+ /// <since_tizen> 3 </since_tizen>
public Rectangle GetInputMethodArea()
{
Rectangle ret = new Rectangle(NDalicManualPINVOKE.ImfManager_GetInputMethodArea(swigCPtr), true);
/// Sets up the input-panel specific data.
/// </summary>
/// <param name="text">The specific data to be set to the input panel.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetInputPanelUserData(string text)
{
NDalicManualPINVOKE.ImfManager_SetInputPanelUserData(swigCPtr, text);
/// <summary>
/// Gets the specific data of the current active input panel.
/// </summary>
- /// <param name="text">The specific data to be got from the input panel.</param>
+ /// <param name="text">The specific data to be received from the input panel.</param>
+ /// <since_tizen> 3 </since_tizen>
public void GetInputPanelUserData(out string text)
{
NDalicManualPINVOKE.ImfManager_GetInputPanelUserData(swigCPtr, out text);
/// Gets the state of the current active input panel.
/// </summary>
/// <returns>The state of the input panel.</returns>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager.State GetInputPanelState()
{
ImfManager.State ret = (ImfManager.State)NDalicManualPINVOKE.ImfManager_GetInputPanelState(swigCPtr);
/// Sets the return key on the input panel to be visible or invisible.<br/>
/// The default is true.
/// </summary>
- /// <param name="visible">True if the return key is visible(enabled), false otherwise.</param>
+ /// <param name="visible">True if the return key is visible (enabled), false otherwise.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetReturnKeyState(bool visible)
{
NDalicManualPINVOKE.ImfManager_SetReturnKeyState(swigCPtr, visible);
}
/// <summary>
- /// Enable to show the input panel automatically when focused.
+ /// Enables to show the input panel automatically when focused.
/// </summary>
/// <param name="enabled">If true, the input panel will be shown when focused.</param>
+ /// <since_tizen> 3 </since_tizen>
public void AutoEnableInputPanel(bool enabled)
{
NDalicManualPINVOKE.ImfManager_AutoEnableInputPanel(swigCPtr, enabled);
/// <summary>
/// Shows the input panel.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void ShowInputPanel()
{
NDalicManualPINVOKE.ImfManager_ShowInputPanel(swigCPtr);
/// <summary>
/// Hides the input panel.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void HideInputPanel()
{
NDalicManualPINVOKE.ImfManager_HideInputPanel(swigCPtr);
/// Gets the keyboard type.<br/>
/// The default keyboard type is SoftwareKeyboard.
/// </summary>
- /// <returns>The keyboard type</returns>
+ /// <returns>The keyboard type.</returns>
+ /// <since_tizen> 4 </since_tizen>
public ImfManager.KeyboardType GetKeyboardType()
{
ImfManager.KeyboardType ret = (ImfManager.KeyboardType)NDalicManualPINVOKE.ImfManager_GetKeyboardType(swigCPtr);
/// <summary>
/// Gets the current language locale of the input panel.<br/>
- /// Ex) en_US, en_GB, en_PH, fr_FR, ...
+ /// For example, en_US, en_GB, en_PH, fr_FR, ...
/// </summary>
/// <returns>The current language locale of the input panel.</returns>
+ /// <since_tizen> 4 </since_tizen>
public string GetInputPanelLocale()
{
string ret = NDalicManualPINVOKE.ImfManager_GetInputPanelLocale(swigCPtr);
}
/// <summary>
- /// Constructor
+ /// The constructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager() : this(NDalicManualPINVOKE.new_ImfManager(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// ImfManager activated event arguments.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class ImfManagerActivatedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
/// <summary>
/// ImfManager activated event.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
{
add
/// </summary>
public class ActivatedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
/// <summary>
/// ImfManager activated.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public event EventHandler<ActivatedEventArgs> Activated
{
add
/// <summary>
/// ImfManager activated signal.
/// </summary>
- [Obsolete("Please do not use! this will be internal")]
+ //Please do not use! this will be internal
+ [EditorBrowsable(EditorBrowsableState.Never)]
public ActivatedSignalType ActivatedSignal()
{
ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
/// <summary>
/// ImfManager event received event arguments.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class ImfManagerEventReceivedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
/// <summary>
/// ImfManager event received.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
{
add
/// </summary>
public class EventReceivedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
set;
}
+ /// <summary>
+ /// ImfEventData
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfEventData ImfEventData
{
get;
/// <summary>
/// ImfManager event received.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public event EventHandlerWithReturnType<object, EventReceivedEventArgs, ImfCallbackData> EventReceived
{
add
/// <summary>
/// ImfManager event received signal.
/// </summary>
- [Obsolete("Please do not use! this will be internal")]
+ //Please do not use! this will be internal
+ [EditorBrowsable(EditorBrowsableState.Never)]
public ImfEventSignalType EventReceivedSignal()
{
ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
/// <summary>
/// ImfManager status changed event arguments.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class ImfManagerStatusChangedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
/// <summary>
/// ImfManager status changed.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
{
add
/// </summary>
public class StatusChangedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager status
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool StatusChanged
{
get;
/// <summary>
/// ImfManager status changed.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public event EventHandler<StatusChangedEventArgs> StatusChanged
{
add
/// <summary>
/// ImfManager status changed signal.
/// </summary>
- [Obsolete("Please do not use! this will be internal")]
+ //Please do not use! this will be internal
+ [EditorBrowsable(EditorBrowsableState.Never)]
public StatusSignalType StatusChangedSignal()
{
StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
/// <summary>
/// ImfManager resized event arguments.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class ImfManagerResizedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
/// <summary>
/// ImfManager resized event.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
{
add
}
}
- private delegate void ResizedEventCallbackType();
+ /// <summary>
+ /// ImfManager resized event.
+ /// </summary>
+ public class ResizedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// resized.
+ /// </summary>
+ public int Resized
+ {
+ get;
+ set;
+ }
+ }
+
+ private delegate void ResizedEventCallbackType(int resized);
private ResizedEventCallbackType _resizedEventCallback;
- private event EventHandler _resizedEventHandler;
+ private event EventHandler<ResizedEventArgs> _resizedEventHandler;
/// <summary>
/// ImfManager resized.
/// </summary>
- public event EventHandler Resized
+ /// <since_tizen> 4 </since_tizen>
+ public event EventHandler<ResizedEventArgs> Resized
{
add
{
}
}
- private void OnResized()
+ private void OnResized(int resized)
{
+ ResizedEventArgs e = new ResizedEventArgs();
+ e.Resized = resized;
+
if (_resizedEventHandler != null)
{
- _resizedEventHandler(this, null);
+ _resizedEventHandler(this, e);
}
}
/// <summary>
/// ImfManager resized signal.
/// </summary>
- [Obsolete("Please do not use! this will be internal")]
- public ImfVoidSignalType ResizedSignal()
+ //Please do not use! this will be internal
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public KeyboardResizedSignalType ResizedSignal()
{
- ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
+ KeyboardResizedSignalType ret = new KeyboardResizedSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// ImfManager language changed event arguments.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class ImfManagerLanguageChangedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public ImfManager ImfManager
{
get;
/// <summary>
/// ImfManager language changed event.
/// </summary>
- [Obsolete("Please do not use! this will be deprecated")]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
{
add
}
}
- private delegate void LanguageChangedEventCallbackType();
+ /// <summary>
+ /// ImfManager language changed event args.
+ /// </summary>
+ public class LanguageChangedEventArgs : EventArgs
+ {
+ /// <summary>
+ /// language changed.
+ /// </summary>
+ public int LanguageChanged
+ {
+ get;
+ set;
+ }
+ }
+
+ private delegate void LanguageChangedEventCallbackType(int languageChanged);
private LanguageChangedEventCallbackType _languageChangedEventCallback;
- private event EventHandler _languageChangedEventHandler;
+ private event EventHandler<LanguageChangedEventArgs> _languageChangedEventHandler;
/// <summary>
/// ImfManager language changed.
/// </summary>
- public event EventHandler LanguageChanged
+ /// <since_tizen> 4 </since_tizen>
+ public event EventHandler<LanguageChangedEventArgs> LanguageChanged
{
add
{
}
}
- private void OnLanguageChanged()
+ private void OnLanguageChanged(int languageChanged)
{
+ LanguageChangedEventArgs e = new LanguageChangedEventArgs();
+ e.LanguageChanged = languageChanged;
+
if (_languageChangedEventHandler != null)
{
- _languageChangedEventHandler(this, null);
+ _languageChangedEventHandler(this, e);
}
}
/// <summary>
/// ImfManager language changed signal.
/// </summary>
- [Obsolete("Please do not use! this will be internal")]
- public ImfVoidSignalType LanguageChangedSignal()
+ //Please do not use! this will be internal
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public LanguageChangedSignalType LanguageChangedSignal()
{
- ImfVoidSignalType ret = new ImfVoidSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
+ LanguageChangedSignalType ret = new LanguageChangedSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// </summary>
public class KeyboardTypeChangedEventArgs : EventArgs
{
+ /// <summary>
+ /// ImfManager keyboard type
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public KeyboardType KeyboardType
{
get;
/// <summary>
/// ImfManager keyboard type changed.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public event EventHandler<KeyboardTypeChangedEventArgs> KeyboardTypeChanged
{
add
}
/// <summary>
- /// The direction of text.
+ /// The direction of the text.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public enum TextDirection
{
/// <summary>
/// <summary>
/// Events that are generated by the IMF.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public enum ImfEvent
{
/// <summary>
/// </summary>
Preedit,
/// <summary>
- /// Commit recieved.
+ /// Commit received.
/// </summary>
Commit,
/// <summary>
- /// Event to delete a range of characters from the string.
+ /// An event to delete a range of characters from the string.
/// </summary>
DeleteSurrounding,
/// <summary>
- /// Event to query string and cursor position.
+ /// An event to query string and the cursor position.
/// </summary>
GetSurrounding,
/// <summary>
}
/// <summary>
- /// Enumeration for state of the input panel.
+ /// Enumeration for the state of the input panel.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public enum State
{
/// <summary>
}
/// <summary>
- /// Enumeration for the type of Keyboard.
+ /// Enumeration for the types of keyboard.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public enum KeyboardType
{
/// <summary>
- /// Software keyboard (Virtual keyboard) is default.
+ /// Software keyboard (virtual keyboard) is default.
/// </summary>
SoftwareKeyboard,
/// <summary>
HardwareKeyboard
}
}
-}
+}
\ No newline at end of file