未验证 提交 82642566 编写于 作者: O openharmony_ci 提交者: Gitee

!23040 [翻译完成】#I7UV4G

Merge pull request !23040 from Annie_wang/PR22613
# Application Access Control Subsystem Changelog
## cl.sucurity_access_token.1 Changes in the Event Subscription and Cancellation APIs
**Change Impact**
The applications developed based on earlier versions are not affected.
**Key API/Component Changes**
Involved APIs:
interface/sdk-js/api/@ohos.abilityAccessCtrl.d.ts:
atManager.on
atManager.off
From this version:
Multiple callbacks can be registered if **tokenIDList** and **permissionList** are the same.
The same callback cannot be registered if **tokenIDList** or **permissionList** are overlapped.
If callback is not passed in **atManager.off**, all callbacks under **tokenIDList** and **permissionList** will be unregistered.
# Application Access Control Subsystem Changelog
## cl.sucurity_access_token.1 Changes in the Event Subscription and Cancellation APIs
**Change Impact**
The applications developed based on earlier versions are not affected.
**Key API/Component Changes**
Involved APIs:
interface/sdk-js/api/@ohos.privacyManager.d.ts:
privacyManager.on
privacyManager.off
From this version:
Multiple callbacks can be registered if **permissionList** is the same.
The same callback cannot be registered if **tokenIDList** is overlapped.
If callback is not passed in **privacyManager.off**, all callbacks under **permissionList** will be unregistered.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册