harmony 鸿蒙Universal Events

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

Universal Events

Different from private events, universal events can be bound to most components.

Name Parameter Description
click - Triggered when the component is clicked.
longpress - Triggered when the component is long pressed.
swipe5+ SwipeEvent Triggered when a user quickly swipes on the component.

Table 1 SwipeEvent (inherited from BaseEvent)

Attribute Type Description
direction string Swiping direction. The value can be one of the following:
- left: Swipe left.
- right: Swipe right.
- up: Swipe up.
- down: Swipe down.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JavaScript-compatible Web-like Development Paradigm (ArkUI.Lite)

harmony 鸿蒙Universal Attributes

harmony 鸿蒙Universal Styles

harmony 鸿蒙chart

harmony 鸿蒙image-animator

harmony 鸿蒙image

harmony 鸿蒙input

harmony 鸿蒙marquee

harmony 鸿蒙picker-view

harmony 鸿蒙progress

0  赞