diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md index 7cf4c74eba58b7b14151cf55563cbdd19f10b33d..f6e715f41a98d066a88c4dc58c2064ee63dba262 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md @@ -1,5 +1,7 @@ # 分布式帐号管理 +本模块提供管理分布式帐号的一些基础功能,主要包括查询和更新帐号登录状态。 + > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -11,17 +13,14 @@ import account_distributedAccount from '@ohos.account.distributedAccount'; ``` -## 系统能力 - -SystemCapability.Account.OsAccount - - ## account_distributedAccount.getDistributedAccountAbility getDistributedAccountAbility(): DistributedAccountAbility 获取分布式帐号单实例对象。 +**系统能力:** SystemCapability.Account.OsAccount + - 返回值: | 类型 | 说明 | | -------- | -------- | @@ -42,7 +41,9 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v 获取分布式帐号信息,使用callback回调异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 - 参数: | 参数名 | 类型 | 必填 | 说明 | @@ -65,7 +66,9 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo> 获取分布式帐号信息,使用Promise方式异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。 - 返回值: | 类型 | 说明 | @@ -89,7 +92,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCall 更新分布式帐号信息,使用callback回调异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 - 参数: | 参数名 | 类型 | 必填 | 说明 | @@ -112,7 +117,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void> 更新分布式帐号信息,使用Promise方式异步返回结果。 -需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 +**系统能力:** SystemCapability.Account.OsAccount + +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。 - 参数: | 参数名 | 类型 | 必填 | 说明 | @@ -140,6 +147,7 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void> 提供操作系统帐户的分布式信息。 +**系统能力:** SystemCapability.Account.OsAccount | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md index 33868672cb9085ebeaf2494672dc0521e36b8797..e76490f34999f78704df910122dac0294e308e4b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md @@ -1,5 +1,7 @@ # 系统帐号管理 +本模块提供管理系统帐号的一些基础能力,包括系统帐号的添加、删除、查询、设置、订阅、启动等功能,提供系统帐号数据落盘的能力。 + > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 @@ -972,6 +974,8 @@ queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>& **系统能力:** SystemCapability.Account.OsAccount +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS + **参数:** | 参数名 | 类型 | 必填 | 说明 | @@ -998,6 +1002,8 @@ queryAllCreatedOsAccounts(): Promise<Array<OsAccountInfo>> **系统能力:** SystemCapability.Account.OsAccount +**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS + **返回值:** | 类型 | 说明 |