Skip to main content

OH_TextEditorProxy_SetGetLeftTextOfCursorFunc

Function OH_TextEditorProxy_SetGetLeftTextOfCursorFunc 

Source
pub unsafe extern "C" fn OH_TextEditorProxy_SetGetLeftTextOfCursorFunc(
    proxy: *mut InputMethod_TextEditorProxy,
    getLeftTextOfCursorFunc: OH_TextEditorProxy_GetLeftTextOfCursorFunc,
) -> InputMethod_ErrorCode
Expand description

@brief Set function {@link OH_TextEditorProxy_GetLeftTextOfCursorFunc} into {@link InputMethod_TextEditorProxy}.

@param proxy Represents a pointer to an {@link InputMethod_TextEditorProxy} instance which will be set function in. @param getLeftTextOfCursorFunc Represents function {@link OH_TextEditorProxy_GetLeftTextOfCursorFunc} which will be set. @return Returns a specific error code. {@link IME_ERR_OK} - success. {@link IME_ERR_NULL_POINTER} - unexpected null pointer. Specific error codes can be referenced {@link InputMethod_ErrorCode}. @since 12