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

  • 2023-06-24
  • 浏览 (466)

@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

Name Value Description
INTENTION_UNKNOWN -1 Unknown intent
INTENTION_UP 1 Up
INTENTION_DOWN 2 Down
INTENTION_LEFT 3 Left
INTENTION_RIGHT 4 Right
INTENTION_SELECT 5 Select
INTENTION_ESCAPE 6 Escape
INTENTION_BACK 7 Back
INTENTION_FORWARD 8 Forward
INTENTION_MENU 9 Menu
INTENTION_PAGE_UP 11 Page up
INTENTION_PAGE_DOWN 12 Page down
INTENTION_ZOOM_OUT 13 Zoom out
INTENTION_ZOOM_IN 14 Zoom 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)

0  赞