Skip to main content

OH_InputMethodProxy_SendPrivateCommand

Function OH_InputMethodProxy_SendPrivateCommand 

Source
pub unsafe extern "C" fn OH_InputMethodProxy_SendPrivateCommand(
    inputMethodProxy: *mut InputMethod_InputMethodProxy,
    privateCommand: *mut *mut InputMethod_PrivateCommand,
    size: usize,
) -> InputMethod_ErrorCode
Expand description

@brief Send private command.

@param inputMethodProxy Represents a pointer to an {@link InputMethod_InputMethodProxy} instance. The inputMethodProxy is obtained from {@link OH_InputMethodController_Attach}. @param privateCommand The private commands, which is defined in {@link InputMethod_PrivateCommand}. Max size 32KB. @param size The size of privateCommand. Max is 5. @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