harmony 鸿蒙@ohos.multimodalInput.intentionCode (Intention Code)

2023-06-24 浏览 (605)

@ohos.multimodalInput.intentionCode (Intention Code)

The intentionCode module maps the original events of the keyboard to intention codes for normalized interaction. For example, if the mapped event of the space bar on the keyboard is INTENTION_SELECT, the intent is to select an item.

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

Modules to Import

import IntentionCode from '@ohos.multimodalInput.intentionCode';

IntentionCode

Enumerates intention codes.

System capability: SystemCapability.MultimodalInput.Input.Core

NameValueDescription
INTENTION_UNKNOWN-1Unknown intent
INTENTION_UP1Up
INTENTION_DOWN2Down
INTENTION_LEFT3Left
INTENTION_RIGHT4Right
INTENTION_SELECT5Select
INTENTION_ESCAPE6Escape
INTENTION_BACK7Back
INTENTION_FORWARD8Forward
INTENTION_MENU9Menu
INTENTION_PAGE_UP11Page up
INTENTION_PAGE_DOWN12Page down
INTENTION_ZOOM_OUT13Zoom out
INTENTION_ZOOM_IN14Zoom in

你可能感兴趣的鸿蒙文章

harmony 鸿蒙APIs

harmony 鸿蒙System Common Events (To Be Deprecated Soon)

harmony 鸿蒙System Common Events

harmony 鸿蒙API Reference Document Description

harmony 鸿蒙Enterprise Device Management Overview (for System Applications Only)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager)

harmony 鸿蒙@ohos.distributedBundle (Distributed Bundle Management)

harmony 鸿蒙@ohos.bundle (Bundle)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)

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