Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
51aabfa2
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
51aabfa2
编写于
7月 18, 2022
作者:
A
Annie_wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
Annie_wang
<
annie.wangli@huawei.com
>
上级
94009e19
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
32 addition
and
32 deletion
+32
-32
en/application-dev/reference/apis/js-apis-distributed-account.md
...ication-dev/reference/apis/js-apis-distributed-account.md
+1
-1
en/application-dev/reference/apis/js-apis-osAccount.md
en/application-dev/reference/apis/js-apis-osAccount.md
+31
-31
未找到文件。
en/application-dev/reference/apis/js-apis-distributed-account.md
浏览文件 @
51aabfa2
...
...
@@ -2,7 +2,7 @@
The distributedAccount module provides basic functions for managing distributed accounts, including querying and updating account login status.
>
![icon-note.gif](public_sys-resources/icon-note.gif)
**NOTE**<br>
> **NOTE**<br>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
...
en/application-dev/reference/apis/js-apis-osAccount.md
浏览文件 @
51aabfa2
...
...
@@ -20,7 +20,7 @@ Obtains an **AccountManager** instance.
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| --------------------------------- | ------------------------ |
|
[
AccountManager
](
#accountmanager
)
| Obtains an
**AccountManager**
instance.|
...
...
@@ -92,7 +92,7 @@ This is a system API and cannot be called by third-party applications.
| ------- | ------ | ---- | -------------------- |
| localId | number | Yes | ID of the OS account to activate.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :------------------ | :---------------------------------- |
...
...
@@ -141,7 +141,7 @@ Checks whether multiple OS accounts are supported. This API uses a promise to re
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------- | :----------------------------------------------------------- |
...
...
@@ -202,7 +202,7 @@ Checks whether an OS account is activated. This API uses a promise to return the
| ------- | ------ | ---- | ------------ |
| localId | number | Yes | ID of the target OS account.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------- | :----------------------------------------------------------- |
...
...
@@ -266,7 +266,7 @@ Checks whether the specified constraint is enabled for an OS account. This API u
| localId | number | Yes | ID of the target OS account. |
| constraint | string | Yes |
[
Constraint
](
#constraints
)
specified.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------- | :----------------------------------------------------------- |
...
...
@@ -316,7 +316,7 @@ Checks whether this OS account is a test account. This API uses a promise to ret
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------- | :----------------------------------------------------------- |
...
...
@@ -400,7 +400,7 @@ Checks whether an OS account has been verified. This API uses a promise to retur
| ------- | ------ | ---- | ------------------ |
| localId | number | No | ID of the target OS account.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------- | :----------------------------------------------------------- |
...
...
@@ -467,7 +467,7 @@ This is a system API and cannot be called by third-party applications.
| ------- | ------ | ---- | -------------------- |
| localId | number | Yes | ID of the OS account to remove.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :------------------ | :---------------------------------- |
...
...
@@ -540,7 +540,7 @@ This is a system API and cannot be called by third-party applications.
| constraints | Array
<
string
>
| Yes | List of
[
constraints
](
#constraints
)
to set or remove.|
| enable | boolean | Yes | Set or remove constraints. The value
**true**
means to set constraints, and
**false**
means to remove constraints. |
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :------------------ | :---------------------------------- |
...
...
@@ -608,7 +608,7 @@ This is a system API and cannot be called by third-party applications.
| localId | number | Yes | ID of the target OS account.|
| localName | string | Yes | Account name to set. |
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :------------------ | :---------------------------------- |
...
...
@@ -663,7 +663,7 @@ Obtains the number of OS accounts created. This API uses a promise to return the
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -712,7 +712,7 @@ Obtains the ID of the OS account to which the current process belongs. This API
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -769,7 +769,7 @@ Obtains the OS account ID based on the process UID. This API uses a promise to r
| ------ | ------ | ---- | --------- |
| uid | number | Yes | Process UID.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -831,7 +831,7 @@ Obtains the OS account ID based on domain account information. This API uses a p
| ---------- | --------------------------------------- | ---- | ------------ |
| domainInfo |
[
DomainAccountInfo
](
#domainaccountinfo
)
| Yes | Domain account information.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -885,7 +885,7 @@ This is a system API and cannot be called by third-party applications.
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -946,7 +946,7 @@ Obtains all constraints enabled for an OS account. This API uses a promise to re
| ------- | ------ | ---- | ------------ |
| localId | number | Yes | ID of the target OS account.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1004,7 +1004,7 @@ This is a system API and cannot be called by third-party applications.
**Required permissions**
: ohos.permission.MANAGE_LOCAL_ACCOUNTS
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :---------------------------------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1056,7 +1056,7 @@ Obtains information about all activated OS accounts. This API uses a promise to
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1122,7 +1122,7 @@ This is a system API and cannot be called by third-party applications.
| localName | string | Yes | Name of the OS account to create.|
| type |
[
OsAccountType
](
#osaccounttype
)
| Yes | Type of the OS account to create.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1189,7 +1189,7 @@ This is a system API and cannot be called by third-party applications.
| type |
[
OsAccountType
](
#osaccounttype
)
| Yes | Type of the OS account to create.|
| domainInfo |
[
DomainAccountInfo
](
#domainaccountinfo
)
| Yes | Domain account information. |
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1243,7 +1243,7 @@ Obtains information about the OS account to which the current process belongs. T
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1308,7 +1308,7 @@ This is a system API and cannot be called by third-party applications.
| ------- | ------ | ---- | -------------------- |
| localId | number | Yes | ID of the target OS account.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1358,7 +1358,7 @@ Obtains the type of the OS account to which the current process belongs. This AP
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :--------------------------------------------- | :----------------------------------------------------------- |
...
...
@@ -1411,7 +1411,7 @@ Obtains the ID of this distributed virtual device. This API uses a promise to re
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -1476,7 +1476,7 @@ This is a system API and cannot be called by third-party applications.
| ------- | ------ | ---- | ------------ |
| localId | number | Yes | ID of the target OS account.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -1547,7 +1547,7 @@ This is a system API and cannot be called by third-party applications.
| localId | number | Yes | ID of the target OS account.|
| photo | string | Yes | Profile photo information. |
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :------------------ | :---------------------------------- |
...
...
@@ -1609,7 +1609,7 @@ Obtains the OS account ID based on the SN. This API uses a promise to return the
| ------------ | ------ | ---- | ---------- |
| serialNumber | number | Yes | Account SN.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -1667,7 +1667,7 @@ Obtains the SN of an OS account based on the account ID. This API uses a promise
| ------- | ------ | ---- | ------------ |
| localId | number | Yes | ID of the target OS account.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -1787,7 +1787,7 @@ This is a system API and cannot be called by third-party applications.
| ------- | ------ | ---- | ------------ |
| uid | number | Yes | Process UID.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -1836,7 +1836,7 @@ This is a system API and cannot be called by third-party applications.
**System capability**
: SystemCapability.Account.OsAccount
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
@@ -1898,7 +1898,7 @@ This is a system API and cannot be called by third-party applications.
| localId | number | Yes | ID of the target OS account.|
| constraint | string | Yes | Name of the
[
constraint
](
#constraints
)
to query.|
**Return
V
alue**
**Return
v
alue**
| Type | Description |
| :-------------------- | :----------------------------------------------------------- |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录