Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
2d2603cb
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
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看板
提交
2d2603cb
编写于
9月 01, 2023
作者:
C
cc_ggboy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
账号docs示例代码语言标记更改
Signed-off-by:
N
cc_ggboy
<
chenweimin8@huawei.com
>
上级
b2defeb2
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
286 addition
and
286 deletion
+286
-286
zh-cn/application-dev/reference/apis/js-apis-appAccount.md
zh-cn/application-dev/reference/apis/js-apis-appAccount.md
+119
-119
zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
...ication-dev/reference/apis/js-apis-distributed-account.md
+14
-14
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
+153
-153
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-appAccount.md
浏览文件 @
2d2603cb
此差异已折叠。
点击以展开。
zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
浏览文件 @
2d2603cb
...
...
@@ -8,7 +8,7 @@
## 导入模块
```
j
s
```
t
s
import
account_distributedAccount
from
'
@ohos.account.distributedAccount
'
;
```
...
...
@@ -27,7 +27,7 @@ getDistributedAccountAbility(): DistributedAccountAbility
|
[
DistributedAccountAbility
](
#distributedaccountability
)
| 返回一个实例,实例提供查询和更新分布式帐号登录状态方法。 |
**示例:**
```
j
s
```
t
s
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
```
...
...
@@ -58,7 +58,7 @@ getOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): voi
| 12300001 | System service exception. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -99,7 +99,7 @@ getOsAccountDistributedInfo(): Promise<DistributedInfo>
| 12300001 | System service exception. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -141,7 +141,7 @@ getOsAccountDistributedInfoByLocalId(localId: number, callback: AsyncCallback<
| 12300003 | Account not found. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -185,7 +185,7 @@ getOsAccountDistributedInfoByLocalId(localId: number): Promise<DistributedInf
| 12300003 | Account not found. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -221,7 +221,7 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v
| callback | AsyncCallback
<
[DistributedInfo](#distributedinfo)
>
| 是 | 回调函数。当获取分布式帐号信息成功,err为undefined,data为获取到的分布式帐号信息对象;否则为错误对象。 |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -256,7 +256,7 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo>
| Promise
<
[DistributedInfo](#distributedinfo)
>
| Promise对象,返回分布式帐号信息对象。 |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -293,7 +293,7 @@ setOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallbac
| 12300003 | Account not found. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -343,7 +343,7 @@ setOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>
| 12300003 | Account not found. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -389,7 +389,7 @@ setOsAccountDistributedInfoByLocalId(localId: number, distributedInfo: Distribut
| 12300008 | Restricted OS account. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -443,7 +443,7 @@ setOsAccountDistributedInfoByLocalId(localId: number, distributedInfo: Distribut
| 12300008 | Restricted OS account. |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -482,7 +482,7 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCall
| callback | AsyncCallback
<
void
>
| 是 | 回调函数。当更新分布式帐号信息成功时,err为undefined,否则为错误对象。 |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
@@ -522,7 +522,7 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void>
| Promise
<
void
>
| Promise对象,无返回结果的Promise对象。 |
**示例:**
```
j
s
```
t
s
import
{
BusinessError
}
from
'
@ohos.base
'
;
const
accountAbility
=
account_distributedAccount
.
getDistributedAccountAbility
();
...
...
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
浏览文件 @
2d2603cb
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录