harmony 鸿蒙Window Subsystem Changelog

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

Window Subsystem Changelog

cl.window.1 Input_KeyEvent Injection Changed in the Callback Event Registered by OH_NativeWindowManager_RegisterKeyEventFilter

Access Level

Public API

Reason for Change

The injected value does not match the enumerated value when the Input_KeyEventAction field of the Input_KeyEvent struct is injected into the callback function. Before the change, the values 1, 2, and 3 of Input_KeyEventAction correspond to KEY_ACTION_CANCEL, KEY_ACTION_DOWN, and KEY_ACTION_UP, respectively, whereas the enumerated values are 0 (KEY_ACTION_CANCEL), 1 (KEY_ACTION_DOWN), and 2 (KEY_ACTION_UP).

Change Impact

This change is a non-compatible change.
Before the change, the value of Input_KeyEventAction in Input_KeyEvent is 1, 2, or 3, which does not match the enumerated values.
After the change, the value of Input_KeyEventAction in Input_KeyEvent is 0, 1, or 2, which matches the enumerated values.

Start API Level

API version 12

Change Since

OpenHarmony SDK 5.0.0.38

Key API/Component Changes

Injection implementation of the callback function OH_NativeWindowManager_KeyEventFilter registered by calling OH_NativeWindowManager_RegisterKeyEventFilter

Adaptation Guide

Change the code to the corresponding enumerated values of Input_KeyEventAction.

cl.window.2 Startup Behavior of startAbility and openLink Is Restricted on a Lock Screen

Access Level

Public API

Reason for Change

Added restrictions on the behavior of randomly starting applications when the screen is locked.

Change Impact

This change is a non-compatible change.

Before the change: When the screen is locked, the startAbility and openLink APIs can be called to start an application and keep the application window in the foreground.

After the change: When startAbility or openLink is called to start an application on a lock screen, the application window is blocked by the window manager when it attempts to enter the foreground state, and the window and application are closed.

Start API Level

6

Change Since

OpenHarmony SDK 5.0.0.71

Key API/Component Changes

startAbility/openLink

The following APIs are involved:

UIAbilityContext:

  • startAbility(want: Want, options?: StartOptions)
  • startAbility(want: Want, callback: AsyncCallback<void>)
  • startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>)
  • startAbilityByCall(want: Want)
  • startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>)
  • startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>)
  • startAbilityForResult(want: Want, options?: StartOptions)
  • startAbilityAsCaller(want: Want, options?: StartOptions)
  • startAbilityAsCaller(want: Want, options: StartOptions, callback: AsyncCallback<void>)
  • startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions)
  • startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback<AbilityResult>)
  • startAbilityForResultWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback<void>)
  • startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions)
  • startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback<void>)
  • startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback<void>)
  • startRecentAbility(want: Want, options?: StartOptions)
  • startRecentAbility(want: Want, callback: AsyncCallback<void>)
  • startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>)
  • startAbilityByCallWithAccount(want: Want, accountId: number)
  • startAbilityAsCaller(want: Want, callback: AsyncCallback<void>)
  • openLink(link: string, options?: OpenLinkOptions, callback?: AsyncCallback<AbilityResult>)

ServiceExtensionContext: - startAbility(want: Want, options?: StartOptions) - startAbility(want: Want, callback: AsyncCallback<void>) - startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>) - startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions) - startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback<void>) - startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback<void>) - startAbilityByCall(want: Want) - startAbilityAsCaller(want: Want, options?: StartOptions) - startAbilityAsCaller(want: Want, callback: AsyncCallback<void>) - startAbilityAsCaller(want: Want, options: StartOptions, callback: AsyncCallback<void>) - startRecentAbility(want: Want, options?: StartOptions) - startRecentAbility(want: Want, callback: AsyncCallback<void>) - startRecentAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>) - startAbilityByCallWithAccount(want: Want, accountId: number) - openLink(link:string, options?: OpenLinkOptions)

UIExtensionContext: - startAbility(want: Want, options?: StartOptions) - startAbility(want: Want, callback: AsyncCallback<void>) - startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>) - startAbilityForResult(want: Want, callback: AsyncCallback<AbilityResult>) - startAbilityForResult(want: Want, options: StartOptions, callback: AsyncCallback<AbilityResult>) - startAbilityForResult(want: Want, options?: StartOptions) - startAbilityForResultAsCaller(want: Want, options?: StartOptions) - openLink(link:string, options?: OpenLinkOptions, callback?: AsyncCallback<AbilityResult>) - openAtomicService(appId: string, options?: AtomicServiceOptions)

AbilityDelegator: - startAbility(want: Want, callback: AsyncCallback<void>)

InsightIntentContext: - startAbility(want: Want, callback: AsyncCallback<void>)

FeatureAbility: - startAbility(parameter: StartAbilityParameter, callback: AsyncCallback<number>) - startAbilityForResult(parameter: StartAbilityParameter, callback: AsyncCallback<AbilityResult>)

StaticSubscriberExtensionContext: - startAbility(want: Want, callback: AsyncCallback<void>)

InputMethodExtensionContext: - startAbility(want: Want)

AccessibilityExtensionContext: - startAbility(want: Want)

FormExtensionContext: - startAbility(want: Want, callback: AsyncCallback<void>)

WindowExtensionContext: - startAbility(want: Want, options: StartOptions, callback: AsyncCallback<void>)

Adaptation Guide

Cancel the calls of the involved APIs on a lock screen. Otherwise, the started application will be closed.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS Subsystem Changelog

harmony 鸿蒙Resource Scheduler Subsystem Changelog

harmony 鸿蒙Distributed Data Management Changelog

harmony 鸿蒙Media Subsystem Changelog

harmony 鸿蒙Multimodal Subsystem Changelog

harmony 鸿蒙Network Subsystem Changelog

harmony 鸿蒙Screen Lock Changelog

harmony 鸿蒙File Subsystem Changelog

0  赞