harmony 鸿蒙ANS Subsystem Changelog

  • 2023-06-24
  • 浏览 (321)

ANS Subsystem Changelog

cl.notificationManager.1 API Renaming

Renamed certain APIs to meet the naming conventions.

Change Impact

The underlying layer still supports the functions of the original APIs, and therefore these APIs can be called in OpenHarmony 4.0.2.3.

Key API/Component Changes

Bundle Name Original API New API
ohos.notificationManager.d.ts function supportDoNotDisturbMode(callback: AsyncCallback<boolean>): void; function isSupportDoNotDisturbMode(callback: AsyncCallback<boolean>): void;
ohos.notificationManager.d.ts function supportDoNotDisturbMode(): Promise<boolean>; function isSupportDoNotDisturbMode(): Promise<boolean>;

Adaptation Guide

Call the new API isSupportDoNotDisturbMode.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Subsystem Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙USB Subsystem API Changelog

0  赞