1# inputmethod_text_editor_proxy_capi.h
2
3
4## 概述
5
6提供一套方法支持应用开发的自绘输入框获取来自输入法应用的通知和请求。
7
8**库:** libohinputmethod.so
9
10**系统能力:** SystemCapability.MiscServices.InputMethodFramework
11
12**起始版本:** 12
13
14**相关模块:**[InputMethod](_input_method.md)
15
16
17## 汇总
18
19
20### 类型定义
21
22| 名称 | 描述 |
23| -------- | -------- |
24| [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) | 输入框代理。 |
25| typedef void(\* [OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, [InputMethod_TextConfig](_input_method.md#inputmethod_textconfig) \*config) | 输入法获取输入框配置时触发的函数。 |
26| typedef void(\* [OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, const char16_t \*text, size_t length) | 输入法应用插入文本时触发的函数。 |
27| typedef void(\* [OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t length) | 输入法删除光标右侧文本时触发的函数。 |
28| typedef void(\* [OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t length) | 输入法删除光标左侧文本时触发的函数。 |
29| typedef void(\* [OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, [InputMethod_KeyboardStatus](_input_method.md#inputmethod_keyboardstatus) keyboardStatus) | 输入法通知键盘状态时触发的函数。 |
30| typedef void(\* [OH_TextEditorProxy_SendEnterKeyFunc](_input_method.md#oh_texteditorproxy_sendenterkeyfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, [InputMethod_EnterKeyType](_input_method.md#inputmethod_enterkeytype) enterKeyType) | 输入法发送回车键时触发的函数。 |
31| typedef void(\* [OH_TextEditorProxy_MoveCursorFunc](_input_method.md#oh_texteditorproxy_movecursorfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, [InputMethod_Direction](_input_method.md#inputmethod_direction) direction) | 输入法移动光标时触发的函数。 |
32| typedef void(\* [OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t start, int32_t end) | 输入法请求选中文本时触发的函数。 |
33| typedef void(\* [OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, [InputMethod_ExtendAction](_input_method.md#inputmethod_extendaction) action) | 输入法发送扩展编辑操作时触发的函数。 |
34| typedef void(\* [OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t number, char16_t text[], size_t \*length) | 输入法获取光标左侧文本时触发的函数。 |
35| typedef void(\* [OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t number, char16_t text[], size_t \*length) | 输入法获取光标右侧文本时触发的函数。 |
36| typedef int32_t(\* [OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy) | 输入法获取光标所在输入框文本索引时触发的函数。 |
37| typedef int32_t(\* [OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, [InputMethod_PrivateCommand](_input_method.md#inputmethod_privatecommand) \*privateCommand[], size_t size) | 输入法应用发送私有数据命令时触发的函数。 |
38| typedef int32_t(\* [OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, const char16_t text[], size_t length, int32_t start, int32_t end) | 输入法设置预上屏文本时触发的函数。 |
39| typedef void(\* [OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy) | 输入法结束预上屏时触发的函数。 |
40
41
42### 函数
43
44| 名称 | 描述 |
45| -------- | -------- |
46| [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \* [OH_TextEditorProxy_Create](_input_method.md#oh_texteditorproxy_create) () | 创建一个新的[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)实例。 |
47| void [OH_TextEditorProxy_Destroy](_input_method.md#oh_texteditorproxy_destroy) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy) | 销毁一个[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)实例。 |
48| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetGetTextConfigFunc](_input_method.md#oh_texteditorproxy_setgettextconfigfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc) getTextConfigFunc) | 将函数[OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
49| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetInsertTextFunc](_input_method.md#oh_texteditorproxy_setinserttextfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc) insertTextFunc) | 将函数[OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
50| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetDeleteForwardFunc](_input_method.md#oh_texteditorproxy_setdeleteforwardfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc) deleteForwardFunc) | 将函数[OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
51| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetDeleteBackwardFunc](_input_method.md#oh_texteditorproxy_setdeletebackwardfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc) deleteBackwardFunc) | 将函数[OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
52| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetSendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_setsendkeyboardstatusfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc) sendKeyboardStatusFunc) | 将函数[OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
53| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetSendEnterKeyFunc](_input_method.md#oh_texteditorproxy_setsendenterkeyfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_SendEnterKeyFunc](_input_method.md#oh_texteditorproxy_sendenterkeyfunc) sendEnterKeyFunc) | 将函数[OH_TextEditorProxy_SetSendEnterKeyFunc](_input_method.md#oh_texteditorproxy_setsendenterkeyfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
54| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetMoveCursorFunc](_input_method.md#oh_texteditorproxy_setmovecursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_MoveCursorFunc](_input_method.md#oh_texteditorproxy_movecursorfunc) moveCursorFunc) | 将函数[OH_TextEditorProxy_SetMoveCursorFunc](_input_method.md#oh_texteditorproxy_setmovecursorfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
55| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetHandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_sethandlesetselectionfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc) handleSetSelectionFunc) | 将函数[OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
56| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetHandleExtendActionFunc](_input_method.md#oh_texteditorproxy_sethandleextendactionfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc) handleExtendActionFunc) | 将函数[OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
57| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetGetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_setgetlefttextofcursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc) getLeftTextOfCursorFunc) | 将函数[OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
58| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetGetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_setgetrighttextofcursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc) getRightTextOfCursorFunc) | 将函数[OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
59| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetGetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_setgettextindexatcursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc) getTextIndexAtCursorFunc) | 将函数[OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
60| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_setreceiveprivatecommandfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc) receivePrivateCommandFunc) | 将函数[OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
61| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetSetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setsetpreviewtextfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc) setPreviewTextFunc) | 将函数[OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
62| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_SetFinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_setfinishtextpreviewfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc) finishTextPreviewFunc) | 将函数[OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc)设置到[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中。 |
63| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetGetTextConfigFunc](_input_method.md#oh_texteditorproxy_getgettextconfigfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc) \*getTextConfigFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc)函数。 |
64| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetInsertTextFunc](_input_method.md#oh_texteditorproxy_getinserttextfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc) \*insertTextFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc)函数。 |
65| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetDeleteForwardFunc](_input_method.md#oh_texteditorproxy_getdeleteforwardfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc) \*deleteForwardFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc)函数。 |
66| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetDeleteBackwardFunc](_input_method.md#oh_texteditorproxy_getdeletebackwardfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc) \*deleteBackwardFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc)函数。 |
67| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetSendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_getsendkeyboardstatusfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc) \*sendKeyboardStatusFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc)函数。 |
68| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetSendEnterKeyFunc](_input_method.md#oh_texteditorproxy_getsendenterkeyfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_SendEnterKeyFunc](_input_method.md#oh_texteditorproxy_sendenterkeyfunc) \*sendEnterKeyFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_SendEnterKeyFunc](_input_method.md#oh_texteditorproxy_sendenterkeyfunc)函数。 |
69| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetMoveCursorFunc](_input_method.md#oh_texteditorproxy_getmovecursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_MoveCursorFunc](_input_method.md#oh_texteditorproxy_movecursorfunc) \*moveCursorFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_MoveCursorFunc](_input_method.md#oh_texteditorproxy_movecursorfunc)函数。 |
70| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetHandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_gethandlesetselectionfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc) \*handleSetSelectionFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc)函数。 |
71| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetHandleExtendActionFunc](_input_method.md#oh_texteditorproxy_gethandleextendactionfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc) \*handleExtendActionFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc)函数。 |
72| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetGetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getgetlefttextofcursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc) \*getLeftTextOfCursorFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc)函数。 |
73| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetGetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getgetrighttextofcursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc) \*getRightTextOfCursorFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc)函数。 |
74| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetGetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_getgettextindexatcursorfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc) \*getTextIndexAtCursorFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc)函数。 |
75| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_getreceiveprivatecommandfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc) \*receivePrivateCommandFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc)函数。 |
76| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetSetPreviewTextFunc](_input_method.md#oh_texteditorproxy_getsetpreviewtextfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc) \*setPreviewTextFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc)函数。 |
77| [InputMethod_ErrorCode](_input_method.md#inputmethod_errorcode) [OH_TextEditorProxy_GetFinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_getfinishtextpreviewfunc) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy, [OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc) \*finishTextPreviewFunc) | 从[InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy)中获取[OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc)函数。 |
78