openharmony 鸿蒙 changelogs-bundlemanager

2026-08-25 浏览 (1)

Bundle Manager Subsystem Changelog

cl.bundlemanager.1 Added Mandatory Property orientationId in AbilityInfo.d.ts

The mandatory property orientationId is added to AbilityInfo.d.ts.

Access Level Public API

Reason for Change To align with the usage habits of end users, applications should be able to configure the default window rotation method based on the device type. Applications reference orientation configurations using resource IDs, and orientationId is used to parse the specific configuration.

Impact of the Change
This change requires application adaptation.

Before change: The application can compile successfully when constructing AbilityInfo. After change: Applications must now include the parameter orientationId when constructing AbilityInfo.

Start API Level API 9

Change Since OpenHarmony SDK 5.0.2.57

Key API/Component Changes
Mandatory property orientationId added to AbilityInfo.d.ts

Adaptation Guide
After upgrading to API 14, if your application constructs the AbilityInfo struct, you must add the mandatory property orientationId to the constructed AbilityInfo struct.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 changelogs-multimedia

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/evRBvLSG