From d85aeadd3580b491a892a83493bb3d08b76646ec Mon Sep 17 00:00:00 2001 From: 123 <834689456@qq.com> Date: Tue, 11 Jul 2023 15:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=81=E5=B1=8F=E5=85=AC=E5=85=B1=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 123 <834689456@qq.com> Change-Id: I818de99d82f763dbfb44389e26e40b87980d62ac --- .../reference/apis/commonEventManager-definitions.md | 4 ++-- .../reference/apis/common_event/commonEvent-account.md | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md b/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md index 315625edb7..128512a01d 100644 --- a/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md +++ b/zh-cn/application-dev/reference/apis/commonEventManager-definitions.md @@ -204,8 +204,8 @@ - 值: usual.event.USER_STARTING - 订阅者所需权限: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS -## COMMON_EVENT_USER_UNLOCKED -(预留事件,暂未支持)设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。 +## [COMMON_EVENT_USER_UNLOCKED](./common_event/commonEvent-account.md) +设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。 - 值: usual.event.USER_UNLOCKED - 订阅者所需权限: 无 diff --git a/zh-cn/application-dev/reference/apis/common_event/commonEvent-account.md b/zh-cn/application-dev/reference/apis/common_event/commonEvent-account.md index 4c1eb697e0..d054bd8600 100644 --- a/zh-cn/application-dev/reference/apis/common_event/commonEvent-account.md +++ b/zh-cn/application-dev/reference/apis/common_event/commonEvent-account.md @@ -51,6 +51,16 @@ 与这个公共事件相关的接口:setOsAccountName、setOsAccountProfilePhoto, 这些为系统API,setOsAccountDistributedInfon为公共API,具体参看[系统帐号接口文档](../js-apis-osAccount.md)、[分布式帐号接口文档](../js-apis-distributed-account.md)。 +## COMMON_EVENT_USER_UNLOCKED +表示设备重启后解锁时,当前用户的凭据加密存储已解锁的公共事件的动作。 + +- 值: usual.event.USER_UNLOCKED +- 订阅者所需权限: 无 + +切换到带有锁屏密码的用户,并且首次解锁会发出触发事件通知服务发布该系统公共事件,事件携带系统账号ID。 + +与这个公共事件相关的接口:auth, 为系统API, 具体参看[系统帐号接口文档](../js-apis-osAccount.md) + ## COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN (预留事件,暂未支持)表示分布式帐号登录成功的动作。 -- GitLab