1e41f4b71Sopenharmony_ci# inputmethod_inputmethod_proxy_capi.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## 概述
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ci提供使用输入法的方法,可以向输入法应用发送请求和通知。
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**库:** libohinputmethod.so
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.MiscServices.InputMethodFramework
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**起始版本:** 12
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**相关模块:**[InputMethod](_input_method.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## 汇总
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci### 类型定义
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci| 名称 | 描述 | 
23e41f4b71Sopenharmony_ci| -------- | -------- |
24e41f4b71Sopenharmony_ci| [InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) | 输入法代理对象。 | 
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci### 函数
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci| 名称 | 描述 | 
30e41f4b71Sopenharmony_ci| -------- | -------- |
31e41f4b71Sopenharmony_ci| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_InputMethodProxy_ShowKeyboard](_input_method.md#oh_inputmethodproxy_showkeyboard) ([InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) \*inputMethodProxy) | 显示键盘。 | 
32e41f4b71Sopenharmony_ci| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_InputMethodProxy_HideKeyboard](_input_method.md#oh_inputmethodproxy_hidekeyboard) ([InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) \*inputMethodProxy) | 隐藏键盘。 | 
33e41f4b71Sopenharmony_ci| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_InputMethodProxy_NotifySelectionChange](_input_method.md#oh_inputmethodproxy_notifyselectionchange) ([InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) \*inputMethodProxy, char16_t text[], size_t length, int start, int end) | 通知文本框选区变化。 | 
34e41f4b71Sopenharmony_ci| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_InputMethodProxy_NotifyConfigurationChange](_input_method.md#oh_inputmethodproxy_notifyconfigurationchange) ([InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) \*inputMethodProxy, [InputMethod_EnterKeyType](_input_method.md#inputmethod_enterkeytype) enterKey, [InputMethod_TextInputType](_input_method.md#inputmethod_textinputtype) textType) | 通知输入框配置变化。 | 
35e41f4b71Sopenharmony_ci| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_InputMethodProxy_NotifyCursorUpdate](_input_method.md#oh_inputmethodproxy_notifycursorupdate) ([InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) \*inputMethodProxy, [InputMethod_CursorInfo](_input_method.md#inputmethod_cursorinfo) \*cursorInfo) | 通知光标位置变化。 | 
36e41f4b71Sopenharmony_ci| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_InputMethodProxy_SendPrivateCommand](_input_method.md#oh_inputmethodproxy_sendprivatecommand) ([InputMethod_InputMethodProxy](_input_method.md#inputmethod_inputmethodproxy) \*inputMethodProxy, [InputMethod_PrivateCommand](_input_method.md#inputmethod_privatecommand) \*privateCommand[], size_t size) | 发送私有数据命令。 | 
37