According to the release of Huawei HarmonyOS developers, in 2022, Huawei released the HarmonyOS 3.0 Release version. In order to further meet the demands of developers to develop applications efficiently, at the Huawei Developer Conference HDC2022 on November 4th of the same year, Huawei launched the HarmonyOS 3.1 version.
HarmonyOS 3.1 mainly promotes the ArkTS development language, and the number of ArkTS APIs will also reach 10,000+. The main API capabilities include: enhanced declarative UI capabilities, a new application development model - Stage model, and in DFX, Web component development, internationalization Subsystem capabilities such as development, communication interconnection, and media software has been updated or enhanced. These capabilities indicate that HarmonyOS has fully entered the declarative development stage of the ArkTS language.
The following is an introduction to the main key features of HarmonyOS 3.1.
ArkUI is a declarative UI development framework for building HarmonyOS application interfaces. It helps you improve the efficiency of HarmonyOS application interface development through a concise and natural UI information description syntax, rich UI dynamic components and APIs, and continuously enhanced one-time development and multi-device deployment capabilities.
ArkUI currently supports more than 70 UI components including Canvas, XComponent, DatePicker, etc., and provides rich responsive layout and adaptive layout capabilities. The specific new and enhanced capabilities are as follows:
Declarative 2D / 3D rendering capabilities
- Added Canvas drawing capability, supports W3C standard Canvas interface, combined with declarative UI paradigm, enhances application developer's custom drawing capability.
- Through the XComponent component and NDK capabilities, build C++/TS hybrid development capabilities to support game and media application development.
Improvement of layout ability
- Flat layout capability to improve layout efficiency
- Custom layout capability, the layout is more flexible and customizable
Component capability improvement
- The use of column structure components has been improved
- List components using boost
Multi-device interaction event normalization
Application Development Model - Stage Model
- Redefine the application operation rules and fundamentally solve the problem of preempting system resources in the background
- The number of background resident processes is reduced
- The memory overhead of the background resident process is reduced
- Background process behavior is more orderly
- The resources required by the foreground process can be fully guaranteed
- Logic and UI are decoupled, application exception recovery and application cross-device migration logic are normalized
- UI is decoupled from logic, and UI is driven by data
- Application exception recovery only needs to load key node data
- When transferring across devices, the application also loads key node data
The multi-device application model is unified, which is more conducive to one-time application development and multi-terminal deployment
DFX
CPU time-consuming tuning
Memory allocation tuning
HiAppEvent (application buried point framework)
Web Component Development
International Development - Pseudo-Localized Debugging
Communication interconnection
Media software
- Audio and video playback, recording, codec
- Audio and video playback, including local playback, online playback
- Audio and video recording, including audio recording, video recording
- Audio and video codec, including audio soft codec, video hard codec, support H264
- The camera supports preview, photo, and video functions
- Basic capabilities of the camera, including basic preview, basic photo taking, and basic video recording
- Support basic parameter control: flash, focus, zoom, etc.
0 Comments