pub unsafe extern "C" fn OH_InputMethodProxy_NotifySelectionChange(
inputMethodProxy: *mut InputMethod_InputMethodProxy,
text: *mut u16,
length: usize,
start: c_int,
end: c_int,
) -> InputMethod_ErrorCodeExpand description
@brief Notify selection change.
Notify selection change when text or cursor position or selected text changed.
@param inputMethodProxy Represents a pointer to an {@link InputMethod_InputMethodProxy} instance. The inputMethodProxy is obtained from {@link OH_InputMethodController_Attach}. @param text The whole input text. @param length The length of text. Max length is 8K. @param start The start position of selected text. @param end The end position of selected text. @return Returns a specific error code. {@link IME_ERR_OK} - success. {@link IME_ERR_PARAMCHECK} - parameter check failed. {@link IME_ERR_IMCLIENT} - input method client error. {@link IME_ERR_IMMS} - input method manager service error. {@link IME_ERR_DETACHED} - input method client detached. {@link IME_ERR_NULL_POINTER} - unexpected null pointer. Specific error codes can be referenced {@link InputMethod_ErrorCode}. @since 12