Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Tonvia
Docs
提交
299bf64e
D
Docs
项目概览
Tonvia
/
Docs
与 Fork 源项目一致
Fork自
OpenHarmony / Docs
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
未验证
提交
299bf64e
编写于
7月 20, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 20, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6938 modify the inconsistence between account docs and d.ts
Merge pull request !6938 from jidong/dev_0719
上级
c41ffef4
5ffcbd37
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
28 deletion
+33
-28
zh-cn/application-dev/reference/apis/js-apis-appAccount.md
zh-cn/application-dev/reference/apis/js-apis-appAccount.md
+27
-26
zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
...ication-dev/reference/apis/js-apis-distributed-account.md
+2
-2
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
+4
-0
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-appAccount.md
浏览文件 @
299bf64e
...
...
@@ -89,7 +89,7 @@ addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>)
### addAccount
addAccount(name: string, extraInfo: string): Promise
<
void
>
addAccount(name: string, extraInfo
?
: string): Promise
<
void
>
将此应用的帐号名或额外信息(能转换成string类型的其它信息)添加到帐号管理服务中,使用Promise方式异步返回结果。
...
...
@@ -100,7 +100,7 @@ addAccount(name: string, extraInfo: string): Promise<void>
| 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | ---------------------------------------- |
| name | string | 是 | 要添加的应用帐号名称。 |
| extraInfo | string |
是
| 要添加的应用帐号的额外信息(能转换成string类型的其它信息),额外信息不能是应用帐号的敏感信息(如应用账号密码)。 |
| extraInfo | string |
否
| 要添加的应用帐号的额外信息(能转换成string类型的其它信息),额外信息不能是应用帐号的敏感信息(如应用账号密码)。 |
**返回值:**
...
...
@@ -1696,7 +1696,7 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>, cal
| name | string | 是 | 应用帐户的名称。 |
| owner | string | 是 | 应用帐户的所有者。|
| labels | Array
<
string
>
| 是 | 标签数组。 |
| callback | AsyncCallback
<
void
>
| 是 | 检查结果的回调。 |
| callback | AsyncCallback
<
boolean
>
| 是 | 检查结果的回调。 |
**示例:**
...
...
@@ -1710,7 +1710,7 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>, cal
### checkAccountLabels<sup>9+</sup>
checkAccountLabels(name: string, owner: string, labels: Array
<
string
>
): Promise
<
void
>
checkAccountLabels(name: string, owner: string, labels: Array
<
string
>
): Promise
<
boolean
>
检查指定帐户是否具有特定的标签集合,使用Promise方式异步返回结果。
...
...
@@ -1771,7 +1771,7 @@ selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback&
### selectAccountsByOptions<sup>9+</sup>
selectAccountsByOptions(options: SelectAccountsOptions): Promise
<
void
>
selectAccountsByOptions(options: SelectAccountsOptions): Promise
<
Array
<
AppAccountInfo
>
>
根据选项选择请求方可访问的帐户列表,使用Promise方式异步返回结果。
...
...
@@ -1836,7 +1836,7 @@ verifyCredential(name: string, owner: string, callback: AuthenticatorCallback):
### verifyCredential<sup>9+</sup>
verifyCredential(name: string, owner: string, options, callback: AuthenticatorCallback): void;
verifyCredential(name: string, owner: string, options
: VerifyCredentialOptions
, callback: AuthenticatorCallback): void;
验证用户凭据,使用callback回调异步返回结果。
...
...
@@ -1952,10 +1952,11 @@ setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callbac
**系统能力:**
以下各项对应的系统能力均为SystemCapability.Account.AppAccount。
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ------ | ---- | -------- |
| authType | string | 是 | 令牌的鉴权类型。 |
| token | string | 是 | 令牌的取值。 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------------- | ---- | ----------------- |
| authType | string | 是 | 令牌的鉴权类型。 |
| token | string | 是 | 令牌的取值。 |
| account | AppAccountInfo | 否 | 令牌所属的帐号信息。|
## AuthenticatorInfo<sup>8+</sup>
...
...
@@ -2011,21 +2012,21 @@ setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callbac
**系统能力:**
以下各项对应的系统能力均为SystemCapability.Account.AppAccount。
| 名称 | 默认值 | 说明 |
| -----------------------------
| ---------------------- |
------------- |
| ACTION_ADD_ACCOUNT_IMPLICITLY | "addAccountImplicitly" | 表示操作,隐式添加帐号。 |
| ACTION_AUTHENTICATE
| "authenticate" | 表示操作,鉴权。
|
| KEY_NAME | "name" | 表示键名,应用帐号名称。 |
| KEY_OWNER
| "owner" | 表示键名,应用帐号所有者。
|
| KEY_TOKEN
| "token" | 表示键名,令牌。
|
| KEY_ACTION
| "action" | 表示键名,操作。
|
| KEY_AUTH_TYPE
| "authType" | 表示键名,鉴权类型。
|
| KEY_SESSION_ID
| "sessionId" | 表示键名,会话标识。
|
| KEY_CALLER_PID
| "callerPid" | 表示键名,调用方PID。
|
| KEY_CALLER_UID
| "callerUid" | 表示键名,调用方UID。
|
| KEY_CALLER_BUNDLE_NAME
| "callerBundleName" | 表示键名,调用方包名。
|
| KEY_REQUIRED_LABELS
| "requiredLabels" | 表示键名,必需的标签。
|
| KEY_BOOLEAN_RESULT
| "booleanResult" | 表示键名,布尔返回值。
|
| 名称 | 默认值 | 说明
|
| -----------------------------
--- | ---------------------- | ----------
------------- |
| ACTION_ADD_ACCOUNT_IMPLICITLY
| "addAccountImplicitly" | 表示操作,隐式添加帐号。 |
| ACTION_AUTHENTICATE
| "authenticate" | 表示操作,鉴权。
|
| KEY_NAME
| "name" | 表示键名,应用帐号名称。 |
| KEY_OWNER
| "owner" | 表示键名,应用帐号所有者。
|
| KEY_TOKEN
| "token" | 表示键名,令牌。
|
| KEY_ACTION
| "action" | 表示键名,操作。
|
| KEY_AUTH_TYPE
| "authType" | 表示键名,鉴权类型。
|
| KEY_SESSION_ID
| "sessionId" | 表示键名,会话标识。
|
| KEY_CALLER_PID
| "callerPid" | 表示键名,调用方PID。
|
| KEY_CALLER_UID
| "callerUid" | 表示键名,调用方UID。
|
| KEY_CALLER_BUNDLE_NAME
| "callerBundleName" | 表示键名,调用方包名。
|
| KEY_REQUIRED_LABELS
<sup>
9+
</sup>
| "requiredLabels" | 表示键名,必需的标签。
|
| KEY_BOOLEAN_RESULT
<sup>
9+
</sup>
| "booleanResult" | 表示键名,布尔返回值。
|
## ResultCode<sup>8+</sup>
...
...
@@ -2124,7 +2125,7 @@ onRequestRedirected: (request: Want) => void
### onRequestContinued<sup>9+</sup>
onRequestContinued: () =
>
void
onRequestContinued
?
: () =
>
void
通知请求被继续处理。
...
...
zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
浏览文件 @
299bf64e
...
...
@@ -43,7 +43,7 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v
**系统能力:**
SystemCapability.Account.OsAccount
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC
,该权限仅供系统应用使用
。
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。
-
参数:
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -68,7 +68,7 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo>
**系统能力:**
SystemCapability.Account.OsAccount
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC
,该权限仅供系统应用使用
。
**需要权限:**
ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。
-
返回值:
| 类型 | 说明 |
...
...
zh-cn/application-dev/reference/apis/js-apis-osAccount.md
浏览文件 @
299bf64e
...
...
@@ -2017,6 +2017,8 @@ queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promis
约束来源类型信息。
此接口为系统接口。
**系统能力:**
以下各项对应的系统能力均为SystemCapability.Account.OsAccount。
| 参数名 | 类型 | 必填 | 说明 |
...
...
@@ -2028,6 +2030,8 @@ queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promis
枚举,约束来源类型。
此接口为系统接口。
**系统能力:**
以下各项对应的系统能力均为SystemCapability.Account.OsAccount。
| 参数 | 默认值 | 说明 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录