[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_IsTextPredictionAllowed")]
public static extern bool InputMethodContext_IsTextPredictionAllowed(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_SetInputPanelLanguage")]
+ public static extern void InputMethodContext_SetInputPanelLanguage(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_GetInputPanelLanguage")]
+ public static extern int InputMethodContext_GetInputPanelLanguage(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_InputMethodContext_SetInputPanelPosition")]
public static extern void InputMethodContext_SetInputPanelPosition(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3);
}
/// <summary>
+ /// Enumeration for the language mode of the input panel.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
+ public enum InputPanelLanguage
+ {
+ /// <summary>
+ /// IME Language automatically set depending on the system display.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
+ Automatic,
+ /// <summary>
+ /// Latin alphabet at all times.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
+ Alphabet
+ }
+
+ /// <summary>
/// Gets or sets whether the IM context allows to use the text prediction.
/// </summary>
- /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public bool TextPrediction
{
get
/// For example, string mimeType = "text/plain,image/png,image/gif,application/pdf";
/// </summary>
/// <param name="mimeType">The allowed MIME type.</param>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public void SetMIMEType(string mimeType)
{
Interop.InputMethodContext.InputMethodContext_SetMIMEType(swigCPtr, mimeType);
/// </summary>
/// <param name="x">The top-left x coordinate of the input panel.</param>
/// <param name="y">The top-left y coordinate of the input panel.</param>
- /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 8 </since_tizen>
public void SetInputPanelPosition(uint x, uint y)
{
Interop.InputMethodContext.InputMethodContext_SetInputPanelPosition(swigCPtr, x, y);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Sets the language of the input panel.
+ /// </summary>
+ /// <param name="language">The language to be set to the input panel</param>
+ /// <since_tizen> 8 </since_tizen>
+ public void SetInputPanelLanguage(InputMethodContext.InputPanelLanguage language)
+ {
+ Interop.InputMethodContext.InputMethodContext_SetInputPanelLanguage(swigCPtr, (int)language);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the language of the input panel.
+ /// </summary>
+ /// <returns>The language of the input panel</returns>
+ /// <since_tizen> 8 </since_tizen>
+ public InputMethodContext.InputPanelLanguage GetInputPanelLanguage()
+ {
+ InputMethodContext.InputPanelLanguage ret = (InputMethodContext.InputPanelLanguage)Interop.InputMethodContext.InputMethodContext_GetInputPanelLanguage(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputMethodContext obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, IntPtr.Zero) : obj.swigCPtr;