diff --git a/en/application-dev/reference/apis/commonEventManager-definitions.md b/en/application-dev/reference/apis/commonEventManager-definitions.md index d43c0cc0aab7edef6c28384f1f0af0381634be74..134356837a602123aa51fbe489131eac0e12c87d 100644 --- a/en/application-dev/reference/apis/commonEventManager-definitions.md +++ b/en/application-dev/reference/apis/commonEventManager-definitions.md @@ -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 diff --git a/en/application-dev/reference/apis/common_event/commonEvent-account.md b/en/application-dev/reference/apis/common_event/commonEvent-account.md index f850f33644513de697c1cd2f56d2f3439c6660c2..fe1328be2efb39090d7384f969ec8fd546b04b8c 100644 --- a/en/application-dev/reference/apis/common_event/commonEvent-account.md +++ b/en/application-dev/reference/apis/common_event/commonEvent-account.md @@ -44,33 +44,43 @@ APIs related to this event: **activateOsAccount**. This API is a system API. For ## COMMON_EVENT_USER_INFO_UPDATED9+ 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 diff --git a/en/readme/figures/theme-framework-subsystem.png b/en/readme/figures/theme-framework-subsystem.png new file mode 100644 index 0000000000000000000000000000000000000000..44afa6835b33c412c3209aa034bff6940ba3876c Binary files /dev/null and b/en/readme/figures/theme-framework-subsystem.png differ diff --git a/en/readme/theme-framework.md b/en/readme/theme-framework.md new file mode 100644 index 0000000000000000000000000000000000000000..47c02cdce8295274d642d04877e5effcc926e496 --- /dev/null +++ b/en/readme/theme-framework.md @@ -0,0 +1,35 @@ +# 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)