Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
acfbd073
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看板
提交
acfbd073
编写于
3月 31, 2022
作者:
A
annie_wangli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
annie_wangli
<
annie.wangli@huawei.com
>
上级
aae0bf4c
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
370 addition
and
366 deletion
+370
-366
en/application-dev/reference/apis/js-apis-appAccount.md
en/application-dev/reference/apis/js-apis-appAccount.md
+352
-353
en/application-dev/reference/apis/js-apis-osAccount.md
en/application-dev/reference/apis/js-apis-osAccount.md
+18
-13
未找到文件。
en/application-dev/reference/apis/js-apis-appAccount.md
浏览文件 @
acfbd073
此差异已折叠。
点击以展开。
en/application-dev/reference/apis/js-apis-osAccount.md
浏览文件 @
acfbd073
...
...
@@ -29,6 +29,7 @@ Obtains an **AccountManager** instance.
```
## OsAccountType
Enumerates OS account types.
**System capability**
: SystemCapability.Account.OsAccount
...
...
@@ -51,6 +52,8 @@ Activates an OS account. This method uses an asynchronous callback to return the
This is a system API and cannot be called by third-party applications.
**Required permissions**
: ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS_EXTENSION
**System capability**
: SystemCapability.Account.OsAccount
**Parameters**
...
...
@@ -488,7 +491,7 @@ This is a system API and cannot be called by third-party applications.
setOsAccountConstraints(localId: number, constraints: Array
<
string
>
, enable: boolean,callback: AsyncCallback
<
void
>
): void
Sets or removes constraints for an OS account.
Sets or removes constraints for an OS account.
This method uses an asynchronous callback to return the result.
This is a system API and cannot be called by third-party applications.
...
...
@@ -519,7 +522,7 @@ This is a system API and cannot be called by third-party applications.
setOsAccountConstraints(localId: number, constraints: Array
<
string
>
, enable: boolean): Promise
<
void
>
Sets or removes constraints for an OS account.
Sets or removes constraints for an OS account.
This method uses a promise to return the result.
This is a system API and cannot be called by third-party applications.
...
...
@@ -1737,12 +1740,13 @@ This is a system API and cannot be called by third-party applications.
```
## OsAccountInfo
Defines information about an OS account.
**System capability**
: SystemCapability.Account.OsAccount
| Name | Type | Mandatory| Description |
| ----------------- | ------------------------------------------------------------ | ---- | --------------------------------- |
| -----------------
-------------
| ------------------------------------------------------------ | ---- | --------------------------------- |
| localId | number | Yes | ID of the target OS account. |
| localName | string | Yes | OS account name. |
| type |
[
OsAccountType
](
#osaccounttype
)
| Yes | OS account type. |
...
...
@@ -1758,6 +1762,7 @@ Defines information about an OS account.
| domainInfo
<sup>
8+
</sup>
|
[
DomainAccountInfo
](
#domainaccountinfo
)
| No | Domain account information. |
## DomainAccountInfo<sup>8+</sup>
Domain account information.
**System capability**
: SystemCapability.Account.OsAccount
...
...
@@ -1801,8 +1806,8 @@ Domain account information.
| constraint.control.apps | A user is not allowed to modify apps in
**Settings**
or the boot module.|
| constraint.physical.media | A user is not allowed to mount external physical media.|
| constraint.microphone | A user is not allowed to use microphones.|
| constraint.microphone.unmute | A user is not allowed to
adjust the microphone volum
e.|
| constraint.volume.adjust | A user is not allowed to adjust the
device's global
volume.|
| constraint.microphone.unmute | A user is not allowed to
unmute the microphon
e.|
| constraint.volume.adjust | A user is not allowed to adjust the volume.|
| constraint.calls.outgoing | A user is not allowed to make outgoing calls.|
| constraint.sms.use | A user is not allowed to send or receive SMS messages.|
| constraint.fun | A user is not allowed to have entertainment.|
...
...
@@ -1820,7 +1825,7 @@ Domain account information.
| constraint.os.account.set.icon | A user is not allowed to change their icon.|
| constraint.wallpaper.set | A user is not allowed to set a wallpaper.|
| constraint.oem.unlock | A user is not allowed to enable OEM unlock.|
| constraint.device.unmute | A user is not allowed to
mute the device's global volum
e.|
| constraint.device.unmute | A user is not allowed to
unmute the devic
e.|
| constraint.password.unified | The managed profile is not allowed to have unified lock screen challenge with the primary user.|
| constraint.autofill | A user is not allowed to use the autofill service.|
| constraint.content.capture | Capturing the content of a user's screen is prohibited.|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录