openharmony 鸿蒙 js-apis-inputmethod-extraconfig

2026-08-25 浏览 (1)

@ohos.inputMethod.ExtraConfig (Input Method Extension Information)

This module manages input method extension information. It enables the ArkUI editor to pass such information to the input method application when the input method is launched. After processing the extension information, the input method application can retrieve the details added by the host application. The total length of the information cannot exceed 32 KB.

NOTE

The initial APIs of this module are supported since API version 22. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Modules to Import

import { InputMethodExtraConfig } from '@kit.IMEKit';

CustomValueType

type CustomValueType = number|string|boolean

Represents the extension information type. The specific type of the parameter depends on its functionality.

System capability: SystemCapability.MiscServices.InputMethodFramework

TypeDescription
stringString.
numberNumber.
booleanBoolean.

InputMethodExtraConfig

Represents the extension information of an input method.

System capability: SystemCapability.MiscServices.InputMethodFramework

NameTypeRead-OnlyOptionalDescription
customSettingsRecord<string, CustomValueType>NoNoInput method extension information, which is used to store custom key-value pairs. These key-value pairs can be any configuration information related to the input method, such as user input habits, shortcut key settings, theme colors, and more. The settings are loaded when the input method application is bound to the system, delivering a personalized user experience. The total length of the information cannot exceed 32 KB.

你可能感兴趣的鸿蒙文章

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/ftL2RmyO