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

!22118 翻译完成 20730+21853+20041:锁屏公共事件修改+公共账号事件监听值更正+【主题】增加主题框架子系统介绍

Merge pull request !22118 from ester.zhou/TR-20730
......@@ -204,8 +204,8 @@ Indicates that user switching is in progress.
- Value: **usual.event.USER_STARTING**
- Required subscriber permissions: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
## COMMON_EVENT_USER_UNLOCKED
(Reserved, not supported yet) Indicates that the credential-encrypted storage has been unlocked for the current user after the device is restarted.
## [COMMON_EVENT_USER_UNLOCKED](./common_event/commonEvent-account.md)
Indicates that the credential-encrypted storage has been unlocked for the current user after the device is restarted.
- Value: **usual.event.USER_UNLOCKED**
- Required subscriber permissions: none
......
......@@ -44,33 +44,43 @@ APIs related to this event: **activateOsAccount**. This API is a system API. For
## COMMON_EVENT_USER_INFO_UPDATED<sup>9+<sup>
Indicates that the user information has been updated.
- Value: **usual.event.USER_INFO_UPDATED**
- Value: usual.event.USER_INFO_UPDATED
- Required subscriber permissions: none
When the distributed account information, system account profile picture, or system account name is changed, the event notification service is triggered to publish this event carrying the system account ID.
APIs related to this event: **setOsAccountName**, **setOsAccountProfilePhoto**, and **setOsAccountDistributedInfon**. The first two are system APIs, and the last is a public API. For details, see [@ohos.account.osAccount (OS Account Management)](../js-apis-osAccount.md).
## COMMON_EVENT_USER_UNLOCKED
Indicates that the credential-encrypted storage has been unlocked for the current user after the device is restarted.
- Value: usual.event.USER_UNLOCKED
- Required subscriber permissions: none
When the device is unlocked with the lock screen password the first time after user switching, the event notification service is triggered to publish this event carrying the system account ID.
APIs related to this event: **auth**. This API is a system API. For details, see [@ohos.account.osAccount (OS Account Management)](../js-apis-osAccount.md).
## COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN
(Reserved, not supported yet) Indicates a successful login to a distributed account.
- Value: usual.event.DISTRIBUTED_ACCOUNT_LOGIN
- Value: common.event.DISTRIBUTED_ACCOUNT_LOGIN
- Required subscriber permissions: none
## COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT
(Reserved, not supported yet) Indicates a successful logout of a distributed account.
- Value: usual.event.DISTRIBUTED_ACCOUNT_LOGOUT
- Value: common.event.DISTRIBUTED_ACCOUNT_LOGOUT
- Required subscriber permissions: none
## COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID
(Reserved, not supported yet) Indicates the token of a distributed account is invalid.
- Value: usual.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID
- Value: common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID
- Required subscriber permissions: none
## COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF
(Reserved, not supported yet) Indicates that a distributed account is deregistered.
- Value: usual.event.DISTRIBUTED_ACCOUNT_LOGOFF
- Value: common.event.DISTRIBUTED_ACCOUNT_LOGOFF
- Required subscriber permissions: none
# Theme Framework
## Introduction
### About the Subsystem
The theme framework subsystem consists of the wallpaper management service and lock screen management service, providing basic capabilities such as wallpaper setting, screen locking, and screen unlocking for the system.
### Architecture
**Figure 1** Architecture of the theme framework subsystem
![](figures/theme-framework-subsystem.png)
## Directory Structure
```
base/theme
├──wallpaper_mgr # Wallpaper management service
└──screenlock_mgr # Lock screen management service
```
## Services
### Wallpaper Management Service
The wallpaper management service provides APIs for setting wallpapers and comes with a wallpaper switching notification mechanism.
### Lock Screen Management Service
The lock screen management service provides capabilities for locking and unlocking the screen, supports screen lock and unlock notifications, and enables lock screen applications to register system event callbacks.
## Repositories Involved
[theme\_wallpaper\_mgr](https://gitee.com/openharmony/theme_wallpaper_mgr)
[theme\_screenlock\_mgr](https://gitee.com/openharmony/theme_screenlock_mgr)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册