harmony 鸿蒙Window Subsystem Changelog

  • 2025-06-12
  • 浏览 (22)

Window Subsystem Changelog

cl.window.1 Error Code Returned by getTitleButtonRect Is Changed

Access Level

Public API

Reason for Change

The API implementation is inconsistent with the design. This API takes effect only on 2-in-1 devices.

Change Impact

This change is a non-compatible change.

Before the change: When a non-2-in-1 device calls getTitleButtonRect, error code 1300002 is returned.

After the change: When a non-2-in-1 device calls getTitleButtonRect, error code 801 is returned.

Start API Level

11

Change Since

OpenHarmony SDK 5.0.0.30

Key API/Component Changes

@ohos.window.d.ts

System capability: SystemCapability.Window.SessionManager

API: getTitleButtonRect

Adaptation Guide

Call this API on a 2-in-1 device. If it is called on a non-2-in-1 device, error code 801 is returned.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Bundle Manager Subsystem Changelog

0  赞