openharmony 鸿蒙 js-apis-inputmethod-panel

2025-06-12 浏览 (1)

@ohos.inputMethod.Panel (Input Method Panel)

The inputMethod.Panel module provides APIs for managing the attributes of the input method panel.

NOTE

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

Modules to Import

import { PanelInfo, PanelType, PanelFlag } from '@kit.IMEKit';

PanelInfo

Defines the attributes of the input method panel.

System capability: SystemCapability.MiscServices.InputMethodFramework

NameTypeMandatoryDescription
typePanelTypeYesType of the input method panel.
flagPanelFlagNoState type of the input method panel.
- The default value is FLAG_FIXED.
- Currently, this parameter is used to describe the state type of the soft keyboard.

PanelType

Enumerates the types of the input method panel.

System capability: SystemCapability.MiscServices.InputMethodFramework

NameValueDescription
SOFT_KEYBOARD0Soft keyboard.
STATUS_BAR1Status bar.

PanelFlag

Enumerates the state types of the input method panel.

System capability: SystemCapability.MiscServices.InputMethodFramework

NameValueDescription
FLAG_FIXED0Fixed state type.
FLAG_FLOATING1Floating state type.
FLAG_CANDIDATE2Candidate state type.
- When in the candidate state type, the input method panel is a window displaying candidates based on user input.
- The input method service does not proactively control the visibility of the candidate panel. You need to control the visibility on your own.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙IME Kit

harmony 鸿蒙InputMethod

harmony 鸿蒙Input Method Framework Error Codes

harmony 鸿蒙inputmethod_attach_options_capi.h

harmony 鸿蒙inputmethod_controller_capi.h

harmony 鸿蒙inputmethod_cursor_info_capi.h

harmony 鸿蒙inputmethod_inputmethod_proxy_capi.h

harmony 鸿蒙inputmethod_private_command_capi.h

harmony 鸿蒙inputmethod_text_avoid_info_capi.h

harmony 鸿蒙inputmethod_text_config_capi.h

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