Huawei Hongmeng HarmonyOS 3.1 version released

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

After interaction normalization, developers do not need to pay attention to the current device and input device type, and only need to make a logical response in the interaction normalization event interface.

Application Development Model - Stage Model

As a supplement to the FA model, the application development framework introduces the Stage model as the second application development model. The Stage model includes life cycle management, scheduling, callback, context acquisition, authentication, etc., which greatly enhances the operation and management capabilities of the application. The key features of the Stage model are as follows:
  • Redefine the application operation rules and fundamentally solve the problem of preempting system resources in the background
  1. The number of background resident processes is reduced
  2. The memory overhead of the background resident process is reduced
  3. Background process behavior is more orderly
  4. 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
  1. UI is decoupled from logic, and UI is driven by data
  2. Application exception recovery only needs to load key node data
  3. 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

The UIAbility life cycle of the Stage model is separated from the window display/focus event, which unifies the UIAbility model in the multi-device mode and promotes a more concise multi-device compatible application code


CPU time-consuming tuning

It is used to track key processes during code execution under high CPU load scenarios and measure and analyze the time-consuming hotspot functions.

Memory allocation tuning

By tuning common problems such as excessive memory allocation and memory leaks, developers can quickly find the context of the memory life cycle.

HiAppEvent (application buried point framework)

Provides pre-embedded, predefined, custom event embedment, storage, distribution, and subscription frameworks for HarmonyOS application events. In-app developers can integrate the SDK to access the big data cloud, and complete the acquisition of buried point data through the HiAppEvent subscription mechanism.

Web Component Development

This update supports document preview and basic editing functions for document-based web applications and supports copying and pasting of mixed graphics and text content across devices. Under the unified W3C standard, it supports the rapid migration of document Web application ecology, with small adaptation and transplant workload and low debugging cost; it supports cross-device copying and pasting of mixed-text content, which solves the problem of loss of images when copying rich text content across devices, and improves mobile office work. experience.

International Development - Pseudo-Localized Debugging

Supports pseudo-translation replacement of interface language, text length extension, and text boundary testing. Developers can test without adding pseudo-translation resources to the App, and can quickly debug by switching the system language to the en-XA area.

Communication interconnection

http enhancements: Including support for caching, support for concurrent frameworks, support for gzip compression, and support for specifying data return formats.
Support TLSSocket: Support the client to specify security transmission options such as certificate, key, CA, etc., initiate a connection to the server, and establish a TLSSocket connection to support TLSv1.2 and TLSv1.3.

Media software

  • Audio and video playback, recording, codec

  1. Audio and video playback, including local playback, online playback
  2. Audio and video recording, including audio recording, video recording
  3. 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.

Distributed Data Management

Distributed data provides applications with distributed collaborative capabilities of databases between different devices (KVStore supports distributed, RDB only supports local).

Above key features: This HarmonyOS 3.1 will also include basic security capabilities, network management, package management, testing frameworks, file management, resource scheduling, USB services, input methods, printing, location services, accessibility software services, user IAM, window, telephone service, distributed soft bus, power service, event notification, and other subsystems have different degrees of updates or enhancements.

The above major updates of HarmonyOS 3.1 will be released gradually in subsequent developer versions. Finally, let's take a look at the version update rhythm of HarmonyOS 3.1:

Post a Comment