1# inputmethod_text_editor_proxy_capi.h
2
3
4## Overview
5
6Provides a set of methods for the custom text box developed by the application to obtain notifications and requests from the input method application.
7
8**Library**: libohinputmethod.so
9
10**System capability**: SystemCapability.MiscServices.InputMethodFramework
11
12**Since**: 12
13
14**Related module**: [InputMethod](_input_method.md)
15
16
17## Summary
18
19
20### Types
21
22| Name| Description|
23| -------- | -------- |
24| [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) | Text box proxy.|
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) | Function called when the input method obtains the text box configuration.|
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) | Function called when the input method application inserts text.|
27| typedef void(\* [OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t length) | Function called when the input method deletes the text on the right of the cursor.|
28| typedef void(\* [OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy, int32_t length) | Function called when the input method deletes the text on the left of the cursor.|
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) | Function called when the input method notifies the keyboard status.|
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) | Function called when the Enter key is pressed in the input method.|
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) | Function called when the cursor is moved in the input method.|
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) | Function called when the input method requests to select text.|
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) | Function called when the input method sends an extended editing operation.|
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) | Function called when the input method obtains the text on the left of the cursor.|
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) | Function called when the input method obtains the text on the right of the cursor.|
36| typedef int32_t(\* [OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy) | Function called when the input method obtains the index of the text where the cursor is located in the text box.|
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) | Function called when the input method application sends a private data command.|
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) | Function called when the input method sets the text preview feature.|
39| typedef void(\* [OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc)) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*textEditorProxy) | Function called when the input method ends the text preview feature.|
40
41
42### Functions
43
44| Name| Description|
45| -------- | -------- |
46| [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \* [OH_TextEditorProxy_Create](_input_method.md#oh_texteditorproxy_create) () | Creates an [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) instance.|
47| void [OH_TextEditorProxy_Destroy](_input_method.md#oh_texteditorproxy_destroy) ([InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) \*proxy) | Destroys an [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy) instance.|
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) | Sets the [OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc) function to [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) | Sets the [OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc) function to [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) | Sets the [OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc) function to [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) | Sets the [OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc) function to [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) | Sets the [OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc) function to [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) | Sets the [OH_TextEditorProxy_SetSendEnterKeyFunc](_input_method.md#oh_texteditorproxy_setsendenterkeyfunc) function to [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) | Sets the [OH_TextEditorProxy_SetMoveCursorFunc](_input_method.md#oh_texteditorproxy_setmovecursorfunc) function to [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) | Sets the [OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc) function to [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) | Sets the [OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc) function to [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) | Sets the [OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc) function to [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) | Sets the [OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc) function to [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) | Sets the [OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc) function to [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) | Sets the [OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc) function to [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) | Sets the [OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc) function to [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) | Sets the [OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc) function to [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) | Obtains the [OH_TextEditorProxy_GetTextConfigFunc](_input_method.md#oh_texteditorproxy_gettextconfigfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_InsertTextFunc](_input_method.md#oh_texteditorproxy_inserttextfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_DeleteForwardFunc](_input_method.md#oh_texteditorproxy_deleteforwardfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_DeleteBackwardFunc](_input_method.md#oh_texteditorproxy_deletebackwardfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_SendKeyboardStatusFunc](_input_method.md#oh_texteditorproxy_sendkeyboardstatusfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_SendEnterKeyFunc](_input_method.md#oh_texteditorproxy_sendenterkeyfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_MoveCursorFunc](_input_method.md#oh_texteditorproxy_movecursorfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_HandleSetSelectionFunc](_input_method.md#oh_texteditorproxy_handlesetselectionfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_HandleExtendActionFunc](_input_method.md#oh_texteditorproxy_handleextendactionfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_GetLeftTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getlefttextofcursorfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_GetRightTextOfCursorFunc](_input_method.md#oh_texteditorproxy_getrighttextofcursorfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_GetTextIndexAtCursorFunc](_input_method.md#oh_texteditorproxy_gettextindexatcursorfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_ReceivePrivateCommandFunc](_input_method.md#oh_texteditorproxy_receiveprivatecommandfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_SetPreviewTextFunc](_input_method.md#oh_texteditorproxy_setpreviewtextfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
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) | Obtains the [OH_TextEditorProxy_FinishTextPreviewFunc](_input_method.md#oh_texteditorproxy_finishtextpreviewfunc) function from [InputMethod_TextEditorProxy](_input_method.md#inputmethod_texteditorproxy).|
78