Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
3479a3a8
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
3479a3a8
编写于
6月 30, 2022
作者:
O
openharmony_ci
提交者:
Gitee
6月 30, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6092 账号子系统docs仓资料整改
Merge pull request !6092 from lichenchen/cherry-pick-1656485381
上级
bee23622
18558e0b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
23 addition
and
9 deletion
+23
-9
zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
...ication-dev/reference/apis/js-apis-distributed-account.md
+17
-9
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
+6
-0
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
浏览文件 @
3479a3a8
# 分布式帐号管理
# 分布式帐号管理
本模块提供管理分布式帐号的一些基础功能,主要包括查询和更新帐号登录状态。
>  **说明:**
>  **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...
@@ -11,17 +13,14 @@ import account_distributedAccount from '@ohos.account.distributedAccount';
...
@@ -11,17 +13,14 @@ import account_distributedAccount from '@ohos.account.distributedAccount';
```
```
## 系统能力
SystemCapability.Account.OsAccount
## account_distributedAccount.getDistributedAccountAbility
## account_distributedAccount.getDistributedAccountAbility
getDistributedAccountAbility(): DistributedAccountAbility
getDistributedAccountAbility(): DistributedAccountAbility
获取分布式帐号单实例对象。
获取分布式帐号单实例对象。
**系统能力:**
SystemCapability.Account.OsAccount
-
返回值:
-
返回值:
| 类型 | 说明 |
| 类型 | 说明 |
| -------- | -------- |
| -------- | -------- |
...
@@ -42,7 +41,9 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v
...
@@ -42,7 +41,9 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v
获取分布式帐号信息,使用callback回调异步返回结果。
获取分布式帐号信息,使用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>
...
@@ -65,7 +66,9 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo>
获取分布式帐号信息,使用Promise方式异步返回结果。
获取分布式帐号信息,使用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
...
@@ -89,7 +92,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCall
更新分布式帐号信息,使用callback回调异步返回结果。
更新分布式帐号信息,使用callback回调异步返回结果。
需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。
**系统能力:**
SystemCapability.Account.OsAccount
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。
-
参数:
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
...
@@ -112,7 +117,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>
...
@@ -112,7 +117,9 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>
更新分布式帐号信息,使用Promise方式异步返回结果。
更新分布式帐号信息,使用Promise方式异步返回结果。
需要权限:ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。
**系统能力:**
SystemCapability.Account.OsAccount
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS,该权限仅供系统应用使用。
-
参数:
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
...
@@ -140,6 +147,7 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>
...
@@ -140,6 +147,7 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>
提供操作系统帐户的分布式信息。
提供操作系统帐户的分布式信息。
**系统能力:**
SystemCapability.Account.OsAccount
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
...
...
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
浏览文件 @
3479a3a8
# 系统帐号管理
# 系统帐号管理
本模块提供管理系统帐号的一些基础能力,包括系统帐号的添加、删除、查询、设置、订阅、启动等功能,提供系统帐号数据落盘的能力。
>  **说明:**
>  **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
...
@@ -972,6 +974,8 @@ queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>&
...
@@ -972,6 +974,8 @@ queryAllCreatedOsAccounts(callback: AsyncCallback<Array<OsAccountInfo>&
**系统能力:**
SystemCapability.Account.OsAccount
**系统能力:**
SystemCapability.Account.OsAccount
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS
**参数:**
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
...
@@ -998,6 +1002,8 @@ queryAllCreatedOsAccounts(): Promise<Array<OsAccountInfo>>
...
@@ -998,6 +1002,8 @@ queryAllCreatedOsAccounts(): Promise<Array<OsAccountInfo>>
**系统能力:**
SystemCapability.Account.OsAccount
**系统能力:**
SystemCapability.Account.OsAccount
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS
**返回值:**
**返回值:**
| 类型 | 说明 |
| 类型 | 说明 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录