Interaction Mechanism Overview For pointer-based interactions including touch events, mouse events, and axis events, the interaction framework determines event and gesture targets through coordinate-b
阅读全文
openharmony 鸿蒙 arkts-interaction-development-guide-touch-screen
Handling Touchscreen Input Events Touchscreen devices are the most common input devices, supported by nearly all handheld terminal devices for user touch operations. Touch events are also one of the m
阅读全文
openharmony 鸿蒙 arkts-manage-components-visibility
Detecting Component Visibility Overview Component visibility refers to the display state of a component on the screen. By detecting visibility, applications can implement the following typical scenari
阅读全文
openharmony 鸿蒙 arkts-state-management-faq
State Management Development In-Component State Management FAQs Data Object State Management FAQs In-App State Management and Other FAQs Common Methods for Locating the Problem That Component Refresh
阅读全文
openharmony 鸿蒙 arkts-state-management-glossary
State Management Terms A Attribute-Level Updates The state management framework uses the class attribute decorator to observe attributes in class objects. When an attribute changes, only the component
阅读全文
openharmony 鸿蒙 arkts-v1-v2-mixusage-before-api-version
Mixed Use of State Management V1 and V2 (Before API Version 19) Overview NOTE: In this topic, the symbol "->" is used to indicate the transfer of variables. For example, "V1 -> V2" indicates tha
阅读全文
openharmony 鸿蒙 arkts-new-syncmonitor
@SyncMonitor Decorator: Synchronous Listening for Value Changes of the State Variables To enhance the listening capability of the state management framework for state variable changes, you can use the
阅读全文
openharmony 鸿蒙 arkts-new-provider-and-consumer
@Provider and @Consumer Decorators: Synchronizing Across Component Levels in a Two-Way Manner @Provider and @Consumer are used for synchronizing data across the component levels in a two-way manner, s
阅读全文
openharmony 鸿蒙 arkts-new-computed
@Computed Decorator: Declaring Computed Properties When developers repeatedly bind the same calculation logic to the UI, to prevent redundant calculations, the @Computed property can be used. A comput
阅读全文
openharmony 鸿蒙 arkts-custom-components-new-lifecycle
Lifecycle of a Custom Component (Recommended) Overview The existing custom component lifecycle callback function is triggered only by events. In some specific cases, the triggering sequence of the cus
阅读全文