openharmony 鸿蒙 capi-inputmethod-types-capi-h

2026-08-25 浏览 (1)

inputmethod_types_capi.h

Overview

Defines the types related to the input method.

File to include: <inputmethod/inputmethod_types_capi.h>

Library: libohinputmethod.so

System capability: SystemCapability.MiscServices.InputMethodFramework

Since: 12

Related module: InputMethod

Summary

Enums

Nametypedef KeywordDescription
InputMethod_KeyboardStatusInputMethod_KeyboardStatusKeyboard status.
InputMethod_EnterKeyTypeInputMethod_EnterKeyTypeEnter key type.
InputMethod_DirectionInputMethod_DirectionMoving direction.
InputMethod_ExtendActionInputMethod_ExtendActionType of the extended edit action on the text box.
InputMethod_TextInputTypeInputMethod_TextInputTypeText input type.
InputMethod_CommandValueTypeInputMethod_CommandValueTypePrivate data type.
InputMethod_ErrorCodeInputMethod_ErrorCodeError code of the input method.
InputMethod_RequestKeyboardReasonInputMethod_RequestKeyboardReasonReason for requesting the keyboard.

Enum Description

InputMethod_KeyboardStatus

enum InputMethod_KeyboardStatus

Description

Enumerates the keyboard status.

Since: 12

Enum ItemDescription
IME_KEYBOARD_STATUS_NONE = 0NONE.
IME_KEYBOARD_STATUS_HIDE = 1Invisible.
IME_KEYBOARD_STATUS_SHOW = 2Visible.

InputMethod_EnterKeyType

enum InputMethod_EnterKeyType

Description

Enumerates the Enter key types.

Since: 12

Enum ItemDescription
IME_ENTER_KEY_UNSPECIFIED = 0Unspecified.
IME_ENTER_KEY_NONE = 1NONE.
IME_ENTER_KEY_GO = 2Go.
IME_ENTER_KEY_SEARCH = 3Search.
IME_ENTER_KEY_SEND = 4Send.
IME_ENTER_KEY_NEXT = 5Next.
IME_ENTER_KEY_DONE = 6Done.
IME_ENTER_KEY_PREVIOUS = 7Previous.
IME_ENTER_KEY_NEWLINE = 8Line break.

InputMethod_Direction

enum InputMethod_Direction

Description

Enumerates the moving directions.

Since: 12

Enum ItemDescription
IME_DIRECTION_NONE = 0NONE.
IME_DIRECTION_UP = 1Upward.
IME_DIRECTION_DOWN = 2Downward.
IME_DIRECTION_LEFT = 3Leftward.
IME_DIRECTION_RIGHT = 4Rightward.

InputMethod_ExtendAction

enum InputMethod_ExtendAction

Description

Enumerates the types of the extended edit action on the text box.

Since: 12

Enum ItemDescription
IME_EXTEND_ACTION_SELECT_ALL = 0Select all.
IME_EXTEND_ACTION_CUT = 3Cut.
IME_EXTEND_ACTION_COPY = 4Copy.
IME_EXTEND_ACTION_PASTE = 5Paste.

InputMethod_TextInputType

enum InputMethod_TextInputType

Description

Enumerates the text input types.

Since: 12

Enum ItemDescription
IME_TEXT_INPUT_TYPE_NONE = -1NONE.
IME_TEXT_INPUT_TYPE_TEXT = 0Text.
IME_TEXT_INPUT_TYPE_MULTILINE = 1Multi-line.
IME_TEXT_INPUT_TYPE_NUMBER = 2Number.
IME_TEXT_INPUT_TYPE_PHONE = 3Phone number.
IME_TEXT_INPUT_TYPE_DATETIME = 4Date.
IME_TEXT_INPUT_TYPE_EMAIL_ADDRESS = 5Email address.
IME_TEXT_INPUT_TYPE_URL = 6URL.
IME_TEXT_INPUT_TYPE_VISIBLE_PASSWORD = 7Password.
IME_TEXT_INPUT_TYPE_NUMBER_PASSWORD = 8Numeric password.
IME_TEXT_INPUT_TYPE_SCREEN_LOCK_PASSWORD = 9Lock screen password.
IME_TEXT_INPUT_TYPE_USER_NAME = 10Username.
IME_TEXT_INPUT_TYPE_NEW_PASSWORD = 11New password.
IME_TEXT_INPUT_TYPE_NUMBER_DECIMAL = 12Decimal number.
IME_TEXT_INPUT_TYPE_ONE_TIME_CODE = 13Verification code. Since: 20

InputMethod_CommandValueType

enum InputMethod_CommandValueType

Description

Enumerates the private data types.

Since: 12

Enum ItemDescription
IME_COMMAND_VALUE_TYPE_NONE = 0NONE.
IME_COMMAND_VALUE_TYPE_STRING = 1String.
IME_COMMAND_VALUE_TYPE_BOOL = 2Boolean.
IME_COMMAND_VALUE_TYPE_INT32 = 332-bit signed integer.

InputMethod_ErrorCode

enum InputMethod_ErrorCode

Description

Enumerates the input method error codes.

Since: 12

Enum ItemDescription
IME_ERR_OK = 0Success.
IME_ERR_UNDEFINED = 1Undefined error.
IME_ERR_PARAMCHECK = 401Parameter check failed.
IME_ERR_PACKAGEMANAGER = 12800001Package management error.
IME_ERR_IMENGINE = 12800002Input method application error.
IME_ERR_IMCLIENT = 12800003Text box client error.
IME_ERR_CONFIG_PERSIST = 12800005Configuration persistence failed. This error code is reported when the configuration fails to be saved.
IME_ERR_CONTROLLER = 12800006Input method controller error.
IME_ERR_SETTINGS = 12800007Input method setter error.
IME_ERR_IMMS = 12800008Input method manager service error.
IME_ERR_DETACHED = 12800009Text box unbound.
IME_ERR_NULL_POINTER = 12802000Null pointer.
IME_ERR_QUERY_FAILED = 12802001Query failed.

InputMethod_RequestKeyboardReason

enum InputMethod_RequestKeyboardReason

Description

Enumerates the reasons for requesting the keyboard.

Since: 15

Enum ItemDescription
IME_REQUEST_REASON_NONE = 0No reason.
IME_REQUEST_REASON_MOUSE = 1Mouse operation.
IME_REQUEST_REASON_TOUCH = 2Touch operation.
IME_REQUEST_REASON_OTHER = 20Other reasons.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-inputmethod-inputmethod-textconfig

openharmony 鸿蒙 js-apis-inputmethod-extension-context

openharmony 鸿蒙 js-apis-inputmethod-subtype

openharmony 鸿蒙 capi-inputmethod-inputmethod-proxy-capi-h

openharmony 鸿蒙 capi-inputmethod-text-editor-proxy-capi-h

openharmony 鸿蒙 capi-inputmethod-controller-capi-h

openharmony 鸿蒙 capi-inputmethod

openharmony 鸿蒙 js-apis-inputmethod-panel

openharmony 鸿蒙 js-apis-inputmethodengine

openharmony 鸿蒙 capi-inputmethod-cursor-info-capi-h

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/8ruVT7Vx