harmony 鸿蒙@ohos.inputMethod.Panel (Input Method Panel)
@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
Name | Type | Mandatory | Description |
---|---|---|---|
type | PanelType | Yes | Type of the input method panel. |
flag | PanelFlag | No | State 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
Name | Value | Description |
---|---|---|
SOFT_KEYBOARD | 0 | Soft keyboard. |
STATUS_BAR | 1 | Status bar. |
PanelFlag
Enumerates the state types of the input method panel.
System capability: SystemCapability.MiscServices.InputMethodFramework
Name | Value | Description |
---|---|---|
FLAG_FIXED | 0 | Fixed state type. |
FLAG_FLOATING | 1 | Floating state type. |
FLAG_CANDIDATE | 2 | Candidate 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 鸿蒙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
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦