harmony 鸿蒙Universal Events

2023-06-24 浏览 (623)

Universal Events

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

NameParameterDescription
click-Triggered when the component is clicked.
longpress-Triggered when the component is long pressed.
swipe5+SwipeEventTriggered when a user quickly swipes on the component.

Table 1 SwipeEvent (inherited from BaseEvent)

AttributeTypeDescription
directionstringSwiping 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

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