harmony 鸿蒙Interaction Event Overview

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

Interaction Event Overview

There are three types of events based on how they are triggered: touchscreen events, keyboard and mouse events, focus events, and drag events.

  • Touchscreen event: an event triggered by an operation (with a finger or a stylus) on the touchscreen.

  • Keyboard and mouse event: an event triggered by an operation on a peripheral mouse device, touchpad, or keyboard.

    • The mouse event refers to an event triggered by an operation performed with a peripheral mouse device or touchpad.
    • The keyboard event refers to an event triggered by an operation performed with a peripheral keyboard.
  • Focus event: an event triggered when a component receives or loses focus.

  • Drag event: an event initiated by touchscreen and keyboard/mouse events, including long-press dragging with a finger or stylus and mouse dragging.

  • Event distribution: a process of collecting hits in the response chain of touchscreen events (excluding key presses and focus).

The gesture event includes the gesture binding method and the bound gesture – a single or combined gesture.

  • Gesture binding method: a method that binds a single or combined gesture to a component and declares the response priority of the bound gesture.

  • Single gesture: basic unit of gestures, which is part of all complex gestures.

  • Combined gesture: a combination of single gestures brought together according to a declared type and a certain rule.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙Atomic Service Full Screen Launch Component (FullScreenLaunchComponent)

harmony 鸿蒙Arc Button (ArcButton)

harmony 鸿蒙Animation Smoothing

harmony 鸿蒙Animation Overview

harmony 鸿蒙Frame Animation (ohos.animator)

harmony 鸿蒙Implementing Property Animation

harmony 鸿蒙Property Animation Overview

harmony 鸿蒙Dialog Box Overview

harmony 鸿蒙Blur Effect

0  赞