Adding an Event Listener NDK APIs provide the event listening capability for components. This section describes how to listen for component events, layout and drawing events, and light/dark mode chang
阅读全文
openharmony 鸿蒙 arkts-user-defined-composition
Custom Composition Overview Custom composition provides component-level customization capabilities, allowing you to create advanced components with service logic by combining existing components. Duri
阅读全文
openharmony 鸿蒙 arkts-stability-freeze-issues
Common UI Application Freezing Issues This document summarizes common ArkUI API misuse scenarios that may cause application freezes, and provides guidance to help you avoid similar issues during devel
阅读全文
openharmony 鸿蒙 arkts-dialog-mask
Popup Mask Control You can customize not only the content of popups but also their mask behavior. This topic introduces ArkUI's popup mask control capabilities, including dismiss-on-click behavior, ma
阅读全文
openharmony 鸿蒙 ui-performance-overview
High-Performance UI Development Optimizing application performance is crucial for enhancing user experience. When performance issues are detected, the analysis can generally follow these steps: Reprod
阅读全文
openharmony 鸿蒙 arkts-embedded-components
In-Application Embedded Component (EmbeddedComponent) The EmbeddedComponent allows the current page to embed UI content provided by other EmbeddedUIExtensionAbilities within the same application. Thes
阅读全文
openharmony 鸿蒙 arkts-shape-overview
Geometric Shape Drawing Overview There are two methods for drawing geometric shapes: (1) by directly drawing them using the Shape component; (2) by clipping a component into a geometric shape using th
阅读全文
openharmony 鸿蒙 arkts-attribute-modifier-faq
FAQs About Dynamic Attribute Setting This topic addresses common issues related to dynamic attribute setting. JS Crash Occurs When AttributeModifier Is Used to Set Dynamic Attributes for a Component S
阅读全文
openharmony 鸿蒙 arkts-navigation-cross-package
Cross-Package Routing Navigation provides two routing table types: system routing table and custom routing table. You can configure routing tables to implement page redirection within a package or acr
阅读全文
openharmony 鸿蒙 arkts-interaction-development-guide-raw-input-event
Input Devices and Events Different input devices generate distinct types of basic events, which are triggered only when users interact with specific hardware or tools. These events can be categorized
阅读全文