From 4cb705a8bf14a35071b8399d06d94ab7bc0d79f5 Mon Sep 17 00:00:00 2001 From: zhangalong Date: Tue, 8 Feb 2022 16:54:09 +0800 Subject: [PATCH] add new js api for os account Signed-off-by:zhang_along Signed-off-by: zhangalong --- api/@ohos.account.osAccount.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/@ohos.account.osAccount.d.ts b/api/@ohos.account.osAccount.d.ts index ba076d5dd0..dc937690e5 100644 --- a/api/@ohos.account.osAccount.d.ts +++ b/api/@ohos.account.osAccount.d.ts @@ -258,6 +258,15 @@ declare namespace osAccount { queryAllCreatedOsAccounts(callback: AsyncCallback>): void; queryAllCreatedOsAccounts(): Promise>; + /** + * Queries the id list of all activated OS accounts. + * + * @since 8 + * @return Returns a id list of OS accounts. + */ + queryActivatedOsAccountIds(callback: AsyncCallback>): void; + queryActivatedOsAccountIds(): Promise>; + /** * Creates an OS account using the local name and account type. * -- Gitee