OpenHarmony 4.0 Release is released, and the OpenHarmony ecosystem is in full swing. Now is the time to invest in the OpenHarmony ecosystem.

OpenHarmony 4.0 Release is released, and the OpenHarmony ecosystem is in full swing. Now is the time to invest in the OpenHarmony ecosystem.

Author: Nut
Team: Nut Party: Currently there are 6 Huawei HDEs.
Public account: "Big Front-end Journey"
Runkaihong technical expert, Huawei HDE, CSDN blog expert, CSDN super individual, CSDN special guest, InfoQ Signed author, OpenHarmony evangelist, electronics enthusiast expert blog, 51CTO blog expert, good at HarmonyOS/OpenHarmony application development, familiar with service card development, served as the team leader in the "War Code Pioneer" activity, trained three team leaders in total, and led 100+ The team members completed the submission and integration of Pr.
Welcome to contact me through the homepage or private message to join the Nut Party and learn HarmonyOS/OpenHarmony application development together.

The OpenHarmony ecosystem is on the rise, and now it is entering the OpenHarmony ecosystem”It’s the right time, just last night, the documents of OpenHarmony 4.0 Release were officially released, because in In the previous plan, October 25th was set. Although it is late, it has finally arrived. OpenHarmony 4.0 Release is finally here with everyone. This update is a major update for us developers.

The development kit has been simultaneously upgraded to API 10. Compared with the 3.2 Release version, more than 4,000 ArkTS APIs have been added.

The OpenHarmony 3.2Release launched on April 7th begins to support large-scale applications using the ArkTS language + Stage application model. At the same time, the OpenHarmony 3.2 Release version provides API Level 9 stable interfaces. Now the development kit has been simultaneously upgraded to API 10. Compared with the 3.2 Release version, more than 4,000 ArkTS APIs have been added. No, you are far ahead without saying a word.

For API differences between OpenHarmony 4.0 Release and 4.0 Beta2, please see the following document.

HDF has added more than 200 HDI interfaces, making hardware adaptation more convenient

Continuously optimize the graphics framework and ArkCompiler, further improving the user interaction experience

Take ArkCompiler, for example, which supports high-level language debugging and tuning, such as hot reload performance optimization that everyone is most concerned about. High-level language concurrency enhancements, such as TaskPool, support task interruption and cancellation, priority setting and automatic expansion and contraction algorithms. High-level language optimized compilation, such as formally defining ArkTS syntax rules and adding ArkTS syntax checks, and other high-level language runtime functions, such as supporting dynamic import and loading of NAPI libraries.

ArkUI component customization capabilities and component animation capabilities have also been further enhanced.

Basic components added or enhanced:

  • A new UIExtension component is added, which is used to embed and display an application into another application through UIExtensionAblity.
  • The Refresh component supports custom pull-down refresh capabilities, allows you to set the display content during pull-down refresh, and enhances the basic capabilities of the component.

Animation effects are added or enhanced:

  • Supports setting spherical high-order attributes, lower edge pixel expansion, color blur, G2 rounded corners, shadows, gradients and other high-order graphic attributes for components, enriching high-order animation effects
  • Supports custom animation to meet a variety of animation needs.

Improved development efficiency

It supports the ability of named routing, with which differentiated switching animations can be set for different pages; the lightweight ArkUI framework supports the definition of global data objects, allowing data sharing between pages within the application.

Enhanced framework capabilities

Including: global API supports Stage model multi-instance scenes, supports Rosen rendering backend, etc.

Enhanced interactive capabilities for rich text

Added support for long-pressing gestures to select text, support for mouse dragging to select text, support for setting text editability (setting whether the rich text box can be edited through general properties), and support for monitoring input events.

The pop-up window function has been enhanced, three new message pop-up window interfaces for error, information and inquiry have been added, and the three-button warning pop-up window scene and interaction optimization have been improved.

Distributed hardware support extends to audio and input areas

  • Distributed audio supports resource pool management of speakers and microphones. It can use the speakers and microphones of remote devices across devices in native system services, and supports controlling the speaker volume of remote devices.
  • Distributed input supports resource pool management of keyboard, mouse, and touchpad, and can trigger the use of cross-device keyboard, mouse, and touchpad in system applications.

Distributed data brings a new unified data management framework for developer data sharing

Specifically, the Unified Data Management Framework (UDMF) is added to support data standardization model, in-device data drag and drop, UDMF data storage adaptation, permission management, and life cycle management. The UDMF framework supports cross-device drag and drop of applications, allowing temporary authorization of files in distributed directories during this process.

After reading several major updates, let’s take a look at the specific information.

application framework

The Stage model improves the following features:

  • The new Extension capability is minimized and managed to support various Extensions to meet the needs of business scenarios.
  • A new UIExtension mechanism is added to implement Extension with an interface. The UIExtension interface can be embedded into the window of the calling application through the UIExtension component and displayed.
  • Provides ActionExtension for custom operation business, ShareExtension for sharing business, BackupExtension for backup and recovery business, DriverExtension for driver business, and PrintExtension for printing business.
  • ArkTS card capabilities have been enhanced, supporting static card configuration and static image display, effectively reducing card memory resource usage, and supporting content refresh through data proxy, effectively reducing card power consumption.
  • To support the sharing of meta-services, application developers can use the UIAbility.onShare() life cycle method provided by the UIAbility component to set the data to be shared. Users can share meta-services and cards to another terminal device through the sharing box.
  • The cross-end migration capability is enhanced and supports calling interfaces to dynamically turn on and off the migration capability. The application can dynamically choose whether to migrate the page stack after successful migration, and whether to exit the source end.

Application package management

  • Supports the decompression-free feature of application installation packages, optimizing system startup performance and application installation performance.
  • Supports application and meta-service data sharing. When the application is installed, the data-group-ids list in the certificate file is parsed, a mapping relationship is established, a data sharing path is created, and data sharing between the application and the meta-service is realized.
  • It supports setting the distribution type and additional information when installing the application, and provides the ArkTS interface to set and query the application distribution type and additional information.
  • Supports querying the list of applications that open files based on file extensions, enabling files to be opened by file extensions.
  • Supports enterprise applications, provides installation of enterprise MDM applications and enterprise normal applications, as well as management and revocation of enterprise applications.
  • It supports overlay capabilities. According to the display styles of different products, developers can add resource file overlay packages without recompiling and packaging to achieve application interface style changes.
  • The unpacking tool supports multiple languages. The application market can query the multi-language information in the package and supports the distribution of applications in different language environments.
  • It supports the use of so files without decompression, that is, without decompressing the so files to a separate directory, the so files are directly read and loaded from the package during runtime, which improves the installation speed and reduces the occupied ROM space.

ArkUI

Basic components added or enhanced:

  • A new UIExtension component is added, which is used to embed and display an application into another application through UIExtensionAblity.
  • The Refresh component supports custom pull-down refresh capabilities, allows you to set the display content during pull-down refresh, and enhances the basic capabilities of the component.

Animation effects are added or enhanced:

  • Supports setting spherical high-order attributes, lower edge pixel expansion, color blur, G2 rounded corners, shadows, gradients and other high-order graphic attributes for components, enriching high-order animation effects
  • Supports custom animation to meet a variety of animation needs.

Improved development efficiency

It supports the ability of named routing, with which differentiated switching animations can be set for different pages; the lightweight ArkUI framework supports the definition of global data objects, allowing data sharing between pages within the application.

Enhanced framework capabilities

Including: global API supports Stage model multi-instance scenes, supports Rosen rendering backend, etc.

Enhanced interactive capabilities for rich text

Added support for long-pressing gestures to select text, support for mouse dragging to select text, support for setting text editability (setting whether the rich text box can be edited through general properties), and support for monitoring input events.

The pop-up window function has been enhanced, three new message pop-up window interfaces for error, information and inquiry have been added, and the three-button warning pop-up window scene and interaction optimization have been improved.

media

In terms of media, it is the audio and broadcast control framework. Optimization of media playback, camera, audio and video codec, etc.

Audio

  • Supports audio playback and recording through Native interface (OHAudio). For scenarios where the latency of audio recording and playback is sensitive, using the Native interface can achieve lower latency.
  • Supports querying or monitoring the current playback device with the highest priority.
  • Supports independent adjustment of alarm volume.
  • Supports muting via physical buttons.
  • Support audio focus: The application does not need to manually apply for focus when playing audio. The system will automatically apply for focus in the background and automatically execute focus strategies (such as pause, fade-out, fade-out resume, etc.); the application only needs to register the focus event listening function to receive focus events. And update the status, such as stopping the progress bar when paused. Support short sound playback.
  • Supports sound effect mode: The application can query the sound effect mode of the audio output and switch or turn off the sound effect mode.
  • Supports recording capabilities within the system: it can filter based on audio scene attributes, record audio data played in the system, and support querying of recording devices.
  • Enhanced audio device capabilities: Supports obtaining the audio device display name, and the device name to which the current playback output belongs can be obtained in the playback object details. Supports querying multiple Bluetooth-connected devices that can be used for audio playback and selecting the device for audio playback. Audio peripherals that support standard USB protocol.

Broadcast control framework

  • It supports the transmission of customized media information between the media provider and the controller, and the application can expand the media content display method. For example, the media controller can require the media provider to display song lyrics in a special form.
  • Supports the framework capability of media playlists. The media provider provides the playlist content, and the media controller obtains the playlist content and can select any media content for playback.
  • Supports the framework capability of playback history. The media session framework provides a list of historical playback applications. The list items are sorted in order of playback (including currently played and exited applications).
  • Provide a transmission channel for custom media events, such as a transmission channel for lyrics content. The media provider provides the lyrics content, and the media controller obtains the lyrics content.
  • Provides a custom transmission channel for media control commands. The media controller can use the custom command transmission channel to send custom control commands to the media provider. For example, the media controller requires the media provider to display barrage information.

media playback

  • Supports online live broadcast function based on HLS protocol and streaming playback function based on datasource.
  • Support HDI-based H.265 video hard decoding and playback capabilities.
  • Supports playback audio attribute settings. Users can choose the type of output sound when using the player.
  • Supports the video's own rotation playback function.
  • Supports sound effect parameter configuration, and can further configure sound effects based on the ability of the audio framework to support sound effects.

camera

  • Supports front preview mirroring capability. By default, the front preview screen is mirrored.
  • Support distributed cameras to query the main device properties of the camera, including device name and device type.
  • Supports more refined resolution query, and can query supported size, format and frame rate information according to preview, photo taking, and video recording purposes.
  • The camera frame provides a horizontal normalized coordinate system [0, 0, 1, 1], and all coordinate-related operations are completed based on this coordinate system.
  • In scenarios where different camera applications use the same camera, the camera framework has priority management and mutual exclusion strategies.

Audio and video codec

  • Supports obtaining the audio and video codec of the system. You can call the Native API interface of this module to query the support of the system's codec capability.
  • Supports audio and video encapsulation. You can call the Native API interface of this module to complete audio and video encapsulation. That is, the encoded media data such as audio and video are stored in a file in a certain format.
  • Supports audio and video decapsulation. You can call the Native API interface of this module to complete audio and video decapsulation, that is, extract audio, video and other media frame data from the bit stream data.

Theme framework

  • Lock screen management service: supports lock screen event callback mechanism, supports static/dynamic wallpapers, and supports querying the business status when the screen is locked.
  • Wallpaper management service: supports custom wallpapers, lock screen/unlock operations, and reset wallpapers.

Wait for other details,

Finally, I hope to work with everyone to do big things on OpenHarmony.

reference

https://gitee.com/openharmony

https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v4.0-release.md

https://gitee.com/openharmony/arkcompiler_ets_runtime

https://gitee.com/openharmony/arkcompiler_toolchain

Guess you like

Origin blog.csdn.net/qq_39132095/article/details/134068230