Skip to main content

OH_TextConfig_SetEnterKeyType

Function OH_TextConfig_SetEnterKeyType 

Source
pub unsafe extern "C" fn OH_TextConfig_SetEnterKeyType(
    config: *mut InputMethod_TextConfig,
    enterKeyType: InputMethod_EnterKeyType,
) -> InputMethod_ErrorCode
Expand description

@brief Set enter key type into TextConfig.

@param config Represents a pointer to an {@link InputMethod_TextConfig} instance which will be set. @param enterKeyType The enter key type of text Editor, which is defined in {@link InputMethod_EnterKeyType}. @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