Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

OpenHarmony 4.0 Release release, richer application development capabilities

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >

Share

Shulou(Shulou.com)11/24 Report--

Recently, OpenHarmony 4.0 Release version has been released as scheduled, and the development kit has been upgraded to API 10 synchronously. Compared with the 3.2 Release version, OpenHarmony 4.0 Release version adds 4000 API and richer application development capabilities; HDF adds 200 + HDI interfaces, making hardware adaptation more convenient; continuous optimization of graphics framework, Ark Compiler (ArkCompiler), ArkUI component customization ability and component dynamic effect ability, user interaction experience has been further improved; the scope of distributed hardware support has been expanded to audio and input fields. Distributed data brings a new unified data management framework for developer data sharing. In addition, this version has also been further enhanced in terms of media, security and privacy protection. The following are some property updates:

Graphics frame and window

Graphics

Stable and smooth:

The performance of unified rendering mode is optimized, including IPC performance optimization based on shared memory, rendering performance optimization based on occlusion culling and caching, energy efficiency improvement based on hardware synthesizer and so on.

Rendering libraries that depend on graphics processing are upgraded to the new version of Skia 0310, which improves rendering performance.

Ultimate dynamic effect:

Support component self-drawing content attribute animation. Support components to animate transitions that appear and disappear.

Support color selection ability, support gradient blur, support edge pixel expansion, support lightening effect, support a variety of blur material capabilities.

Enhanced picture ability:

Enhanced picture coding and decoding ability: support SVG format picture decoding, ico format picture decoding, GIF incremental decoding, jpeg_IDCT scaling decoding, png picture coding, picture exif information expansion.

Enhanced image interface: supports serialization and deserialization on the Pixelmap JS side, and provides ImageReceiver and image decoding NDK interfaces.

Window

Support to monitor the focus state of the window, you can monitor the focus, out of focus and show hidden state of a single window.

Support applications to adjust the z-axis order of child windows to the top level of the current application window.

Support the display mode of the query screen (mirroring, expansion), provide to stop mirroring and stop expanding API.

The parameter value acquisition mode of the display module is optimized from the original software mode to obtaining the real value directly from the hardware.

Support to restore screen brightness to default values through window settings.

Reconstruct the immersive implementation to optimize the animation effect under the opening, exit and jump of the application.

ArkCompiler

Advanced language debugging and tuning:

Hot and heavy load performance optimization, supporting multi-hap and other scenarios.

Multi-instance tuning is supported.

Advanced language concurrency enhancements:

TaskPool supports task interruption and cancellation, definition of task groups (TaskGroup), management of task status and scheduling information, and identification and recovery of long-waiting tasks.

TaskPool supports priority setting and automatic scaling algorithm.

High-level language optimization compilation:

Formally define ArkTS syntax rules and add ArkTS syntax checking to alert code that does not comply with ArkTS syntax rules when compiling code with DevEco Studio.

AOT optimized compilation supports side-to-side idle compilation, which enhances compilation optimization to further improve performance.

PGO supports the collection of runtime type and function hotspot information, supports AOT to optimize and compile JS code, and improves the running performance of dynamic JS code.

Application framework

Six types of Extension have been added to the Stage model and the following features have been improved:

Extension has been added to minimize management, supporting all kinds of Extension to meet the needs of business scenarios.

A new UIExtension mechanism is added, and the interface used to implement Extension,UIExtension with interface can be embedded into the window of the caller's application in the way of UIExtension component.

Support native default Extension interface display, making it easy for developers to quickly implement Extension functions, while also providing interface customization capabilities.

Provide ActionExtension for custom operation service, ShareExtension for sharing service, BackupExtension for backup and recovery service, DriverExtension for driving service, PrintExtension for printing service.

ArkTS card ability is enhanced, support static card configuration, static graph display, effectively reduce the card memory resources, support through the data agent to refresh the content, effectively reduce the card power consumption.

To support meta-service sharing, 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 with another terminal device through the sharing box.

Cross-end migration capability is enhanced, and supports calling APIs to dynamically turn on and off migration capabilities. The application can dynamically choose whether to migrate the page stack after a successful migration, and whether the source side exits.

ArkUI

Base components are added or enhanced:

A new UIExtension component is added, which is used to embed and display one application into another application through UIExtensionAblity.

The drawing component Rect/Circle/Ellipse/Line/Polyline/Polygon/Path/Rect/Shape supports general attributes such as offset, cropping, masking and so on, which enhances the basic function of the drawing component.

The custom pop-up box supports the customization of mask color and pop-up animation, such as allowing you to set the relevant parameters of the pop-up animation effect to enhance the developer's custom function of the pop-up box.

The ColumnSplit separator supports draggability to enhance the basic functionality of the component.

The Refresh component supports custom drop-down refresh capabilities, allowing you to set the display content when the drop-down refresh occurs, and enhance the basic capabilities of the component.

Support the text component to return the width and height of the input string. When the string is folded and displayed, the mouse hover can pop up the full string prompt box to enhance the basic function of the text component.

The ArkTS / JS card supports the callback of UI rendering completion, which makes it easy to obtain the status of the rendering completion and proceed to the next step.

The basic component features are enhanced to enhance the end-user experience, including pop-up support for layer-by-layer exit through the keyboard ESC key, ListItem support for long-distance left-sliding delete gestures, ContextMenu support for segmented display, and so on.

Semi-modal components support highly adaptive settings.

Animation effects are added or enhanced:

Support the transition dynamic effect of component property change, such as component size, background color, transparency and other properties change through the transition dynamic effect to link up the state before and after the change, so as to enhance the animation experience when the component property changes.

Support for components to set spherical high-order attributes, lower edge pixel expansion, color blur, G2 fillets, shadows, gradients and other high-order graphics properties to enrich high-level animation effects.

Layout properties, background picture size and position attributes, explicit and implicit attributes support implicit dynamic effects.

List added support for scrollToIndex dynamic effects, Tasb fuzzy dynamic effects, and Popup appear / disappear dynamic effects.

Support custom animation to meet a variety of animation demands.

Distributed data management

The DataShare client provides the ability to subscribe to changes in DataShareExtension data according to the URI prefix. Any changes in DataShareExtension data under the subscribed URI prefix will be notified to the DataShare client.

A new unified data management framework (Unified Data Management Framework, UDMF) is added to support data standardization model, data drag and drop within devices, UDMF data storage adaptation, rights management, and lifecycle management. The UDMF framework supports cross-device dragging of applications, allowing temporary authorization of files in distributed directories in the process.

Provide RDBstore NDK interface: including add / delete / change / check / transaction, data encryption, data hierarchical protection, backup / recovery capability.

Key-Value and distributed data objects support the automatic selection of channels for data synchronization based on the amount of data. The system will automatically select Bluetooth channel or Wi-Fi-based P2P channel for data synchronization according to the amount of data.

Document management

Support file classification view management capabilities, photo albums and other applications manage media files in the way of photo albums (images and videos do not need to pay attention to the specific storage location). Functions such as adding and removing files in the album do not involve specific File IO behavior. Three-party applications are supported to obtain album lists and access pictures, videos and other files in the album through the PhotoAccessHelper interface.

Provide enhanced FileIO access capabilities to support randomAccessFile, moveDir, copyDir capabilities.

Provide URI-based file temporary authorization access and de-authorization ability to support cross-application local authorization or cross-device authorization.

Public image files can be synchronized between the device and the cloud (cloud services are required for device login accounts), and cloud images can be selected through picker.

Application package management

Support application installation package decompression-free features, optimize system startup performance and application installation performance.

Support the application and meta-service data sharing. When the application is installed, parse the data-group-ids list in the certificate file, establish the mapping relationship, create the data sharing path, and realize the application and meta-service data sharing.

It supports setting distribution type and additional information during application installation, and provides ArkTS interface to set and query application distribution type and additional information.

Support enterprise applications, provide the installation of enterprise MDM applications and enterprise normal applications, as well as the management and cancellation of enterprise applications.

Overlay is supported. For different product display styles, developers can add the overlay package of resource files without recompiling and packaging to change the style of the application interface.

Support the use of so files without decompression, that is, do not extract so files to a separate directory, run-time read and load so files directly from the package, improve installation speed and reduce ROM space consumption.

WebView

W3C capabilities complement: supplement Web camere capabilities, as well as bindContextMenu, Select, date type input and other H5 tagging capabilities.

Process splits that support multiple rendering processes.

Basic drag and drop capabilities for text and pictures are supported.

Support WebRTC's video conferencing capabilities (excluding camera sharing).

Support rendering process independent SELinux tags to enhance the basic security capabilities.

Support to identify the rendering process of Web components, display thread and scene information, and notify the system resource scheduling for CPU control.

test

Testing framework arkxtest

Support the nesting definition ability of automated script test suite to improve the flexibility of developers' script design.

Support object-level assertion ability and improve test script assertion ability.

Support the ability to simulate Chinese input, simulate mouse operation, and take screenshots of areas.

Self-test execution framework developer_test

Support test task management capabilities, developers through the task ID to perform historical tasks to improve the efficiency of developer self-testing.

Support accurate testing capabilities, support subsystems, components, test suites, test case-level test case screening and execution capabilities, and improve developer self-testing efficiency.

Support docking and execution of hats use cases, enriching the scope of execution use cases.

Support stability testing ability, support out-of-order execution of test cases.

Support coverage statistics, support developers to generate code coverage data locally with one click.

Performance debugging development tool SmartPerf Host

Support Frame timeline crawl and display capabilities, developers can grab and display Catton lost frame detection data.

Support Scheduling analysis crawling and display capabilities, developers can crawl and display CPU scheduling analysis, thread scheduling analysis of related data.

Support call stack visualization and call proportion display of different library functions. Developers can capture and show the proportion of call stack and different library functions by pie chart.

Performance data acquisition SmartPerf Device

Hot and cold startup, intra-page switching and sliding frame rate testing capabilities are supported. Developers can test the application cold and hot startup delay, page switching delay and sliding frame rate testing ability.

The ability to connect end-to-side test data with cloud Kanban is supported. Developers can upload end-side test reports to the cloud to view or download cloud data locally.

The complete information of this version can be visited on the official OpenHarmony website. Developers are welcome to actively use it and put forward valuable suggestions, open source and co-construction, and jointly create the root community of the next generation of smart terminals and the digital base of the Internet of everything.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

IT Information

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report