未验证 提交 4f02f7de 编写于 作者: O openharmony_ci 提交者: Gitee

!17661 【帐号子系统】接口可选参数说明整改

Merge pull request !17661 from lichenchen/master
...@@ -132,7 +132,7 @@ createAccount(name: string, options?: CreateAccountOptions): Promise<void> ...@@ -132,7 +132,7 @@ createAccount(name: string, options?: CreateAccountOptions): Promise<void>
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | ---------------------------------------- | | --------- | ------ | ---- | ---------------------------------------- |
| name | string | 是 | 应用帐号的名称。 | | name | string | 是 | 应用帐号的名称。 |
| options | [CreateAccountOptions](#createaccountoptions9) | 否 | 创建应用帐号的选项,可提供自定义数据,但不建议包含敏感数据(如密码、Token等)。不填无影响。 | | options | [CreateAccountOptions](#createaccountoptions9) | 否 | 创建应用帐号的选项,可提供自定义数据,但不建议包含敏感数据(如密码、Token等)。不填无影响,默认为空,表示创建的该帐号无额外信息需要添加。 |
**返回值:** **返回值:**
...@@ -1256,7 +1256,7 @@ on(type: 'accountChange', owners: Array<string>, callback: Callback<Arr ...@@ -1256,7 +1256,7 @@ on(type: 'accountChange', owners: Array<string>, callback: Callback<Arr
| -------- | ---------------------------------------- | ---- | ------------------------------ | | -------- | ---------------------------------------- | ---- | ------------------------------ |
| type | 'accountChange' | 是 | 事件回调类型,支持的事件为'accountChange',当目标应用更新帐号信息时,触发该事件。 | | type | 'accountChange' | 是 | 事件回调类型,支持的事件为'accountChange',当目标应用更新帐号信息时,触发该事件。 |
| owners | Array<string> | 是 | 应用帐号所有者的包名列表。 | | owners | Array<string> | 是 | 应用帐号所有者的包名列表。 |
| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 是 | 回调函数,返回信息发生变更的应用帐号列表。 | | callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 是 | 需要注册的回调函数,返回信息为发生变更的应用帐号列表。 |
**错误码:** **错误码:**
...@@ -1292,7 +1292,7 @@ off(type: 'accountChange', callback?: Callback<Array<AppAccountInfo>&gt ...@@ -1292,7 +1292,7 @@ off(type: 'accountChange', callback?: Callback<Array<AppAccountInfo>&gt
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------------------------------- | ---- | ------------ | | -------- | -------------------------------- | ---- | ------------ |
| type | 'accountChange' | 是 | 事件回调类型,支持的事件为'accountChange',当帐号所有者更新帐号信息时,触发该事件。 | | type | 'accountChange' | 是 | 事件回调类型,支持的事件为'accountChange',当帐号所有者更新帐号信息时,触发该事件。 |
| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 否 | 回调函数,返回信息发生变更的应用帐号列表。 | | callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 否 | 需要注销的回调函数,默认为空,表示取消该类型事件所有的回调。 |
**错误码:** **错误码:**
...@@ -2780,7 +2780,7 @@ addAccount(name: string, extraInfo?: string): Promise<void> ...@@ -2780,7 +2780,7 @@ addAccount(name: string, extraInfo?: string): Promise<void>
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | ---------------------------------------- | | --------- | ------ | ---- | ---------------------------------------- |
| name | string | 是 | 应用帐号的名称。 | | name | string | 是 | 应用帐号的名称。 |
| extraInfo | string | 否 | 额外信息(能转换string类型的其它信息),额外信息不能是应用帐号的敏感信息(如应用帐号密码、token等)。 | | extraInfo | string | 否 | 额外信息(能转换string类型的其它信息),额外信息不能是应用帐号的敏感信息(如应用帐号密码、token等),默认为空,表示创建的该帐号无额外信息需要添加。 |
**返回值:** **返回值:**
...@@ -3700,7 +3700,7 @@ on(type: 'change', owners: Array<string>, callback: Callback<Array<A ...@@ -3700,7 +3700,7 @@ on(type: 'change', owners: Array<string>, callback: Callback<Array<A
| -------- | ---------------------------------------- | ---- | ------------------------------ | | -------- | ---------------------------------------- | ---- | ------------------------------ |
| type | 'change' | 是 | 事件回调类型,支持的事件为'change',当帐号所有者更新帐号信息时,触发该事件。 | | type | 'change' | 是 | 事件回调类型,支持的事件为'change',当帐号所有者更新帐号信息时,触发该事件。 |
| owners | Array<string> | 是 | 应用帐号所有者的包名列表。 | | owners | Array<string> | 是 | 应用帐号所有者的包名列表。 |
| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 是 | 回调函数,返回信息发生变更的应用帐号列表。 | | callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 是 | 需要注册的回调函数,返回信息发生变更的应用帐号列表。 |
**示例:** **示例:**
...@@ -3733,7 +3733,7 @@ off(type: 'change', callback?: Callback<Array<AppAccountInfo>>): voi ...@@ -3733,7 +3733,7 @@ off(type: 'change', callback?: Callback<Array<AppAccountInfo>>): voi
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------------------------------- | ---- | ------------ | | -------- | -------------------------------- | ---- | ------------ |
| type | 'change' | 是 | 事件回调类型,支持的事件为'change',当帐号所有者更新帐号信息时,触发该事件。 | | type | 'change' | 是 | 事件回调类型,支持的事件为'change',当帐号所有者更新帐号信息时,触发该事件。 |
| callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 否 | 回调函数,返回信息发生变更的应用帐号列表。 | | callback | Callback<Array<[AppAccountInfo](#appaccountinfo)>> | 否 | 需要注销的回调函数,默认为空,表示取消该类型事件的所有回调。 |
**示例:** **示例:**
...@@ -4431,7 +4431,7 @@ getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo> ...@@ -4431,7 +4431,7 @@ getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo>
| -------------------- | -------------- | ----- | ---------------- | | -------------------- | -------------- | ----- | ---------------- |
| authType<sup>9+</sup> | string | 是 | 令牌的鉴权类型。 | | authType<sup>9+</sup> | string | 是 | 令牌的鉴权类型。 |
| token<sup>9+</sup> | string | 是 | 令牌的取值。 | | token<sup>9+</sup> | string | 是 | 令牌的取值。 |
| account<sup>9+</sup> | [AppAccountInfo](#appaccountinfo) | 否 | 令牌所属的帐号信息。| | account<sup>9+</sup> | [AppAccountInfo](#appaccountinfo) | 否 | 令牌所属的帐号信息,默认为空。|
## OAuthTokenInfo<sup>(deprecated)</sup> ## OAuthTokenInfo<sup>(deprecated)</sup>
...@@ -4447,7 +4447,7 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4447,7 +4447,7 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| -------------------- | -------------- | ----- | ---------------- | | -------------------- | -------------- | ----- | ---------------- |
| authType | string | 是 | 令牌的鉴权类型。 | | authType | string | 是 | 令牌的鉴权类型。 |
| token | string | 是 | 令牌的取值。 | | token | string | 是 | 令牌的取值。 |
| account<sup>9+</sup> | [AppAccountInfo](#appaccountinfo) | 否 | 令牌所属的帐号信息。| | account<sup>9+</sup> | [AppAccountInfo](#appaccountinfo) | 否 | 令牌所属的帐号信息,默认为空。|
## AuthenticatorInfo<sup>8+</sup> ## AuthenticatorInfo<sup>8+</sup>
...@@ -4469,8 +4469,8 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4469,8 +4469,8 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- | ---------- | | ------- | ------ | ---- | ---------- |
| account | [AppAccountInfo](#appaccountinfo) | 否 | 令牌所属的帐号信息。 | | account | [AppAccountInfo](#appaccountinfo) | 否 | 令牌所属的帐号信息,默认为空。 |
| tokenInfo | [AuthTokenInfo](#authtokeninfo9) | 否 | 令牌信息。 | | tokenInfo | [AuthTokenInfo](#authtokeninfo9) | 否 | 令牌信息,默认为空。 |
## CreateAccountOptions<sup>9+</sup> ## CreateAccountOptions<sup>9+</sup>
...@@ -4480,7 +4480,7 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4480,7 +4480,7 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- | ---------- | | ------- | ------ | ---- | ---------- |
| customData | {[key: string]: string} | 否 | 自定义数据。 | | customData | {[key: string]: string} | 否 | 自定义数据,默认为空。 |
## CreateAccountImplicitlyOptions<sup>9+</sup> ## CreateAccountImplicitlyOptions<sup>9+</sup>
...@@ -4490,9 +4490,9 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4490,9 +4490,9 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------- | ------ | ---- | ---------- | | ------- | ------ | ---- | ---------- |
| requiredLabels | Array&lt;string&gt; | 否 | 必须的标签。 | | requiredLabels | Array&lt;string&gt; | 否 | 所需的标签,默认为空。 |
| authType | string | 否 | 鉴权类型。 | | authType | string | 否 | 鉴权类型,默认为空。 |
| parameters | {[key: string]: Object} | 否 | 自定义参数对象。 | | parameters | {[key: string]: Object} | 否 | 自定义参数对象,默认为空。 |
## SelectAccountsOptions<sup>9+</sup> ## SelectAccountsOptions<sup>9+</sup>
表示用于选择帐号的选项。 表示用于选择帐号的选项。
...@@ -4501,9 +4501,9 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4501,9 +4501,9 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| --------------- | --------------------------- | ----- | ------------------- | | --------------- | --------------------------- | ----- | ------------------- |
| allowedAccounts | Array&lt;[AppAccountInfo](#appaccountinfo)&gt; | 否 | 允许的帐号数组 | | allowedAccounts | Array&lt;[AppAccountInfo](#appaccountinfo)&gt; | 否 | 允许的帐号数组,默认为空。 |
| allowedOwners | Array&lt;string&gt; | 否 | 允许的帐号所有者数组。 | | allowedOwners | Array&lt;string&gt; | 否 | 允许的帐号所有者数组,默认为空。 |
| requiredLabels | Array&lt;string&gt; | 否 | 认证器的标签标识 | | requiredLabels | Array&lt;string&gt; | 否 | 认证器的标签标识,默认为空。 |
## VerifyCredentialOptions<sup>9+</sup> ## VerifyCredentialOptions<sup>9+</sup>
...@@ -4513,9 +4513,9 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4513,9 +4513,9 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------------- | ---------------------- | ----- | -------------- | | -------------- | ---------------------- | ----- | -------------- |
| credentialType | string | 否 | 凭据类型。 | | credentialType | string | 否 | 凭据类型,默认为空。 |
| credential | string | 否 | 凭据取值。 | | credential | string | 否 | 凭据取值,默认为空。 |
| parameters | {[key: string]: Object} | 否 | 自定义参数对象。 | | parameters | {[key: string]: Object} | 否 | 自定义参数对象,默认为空。 |
## SetPropertiesOptions<sup>9+</sup> ## SetPropertiesOptions<sup>9+</sup>
...@@ -4526,8 +4526,8 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt; ...@@ -4526,8 +4526,8 @@ getAuthenticatorInfo(owner: string): Promise&lt;AuthenticatorInfo&gt;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ---------- | ---------------------- | ----- | -------------- | | ---------- | ---------------------- | ----- | -------------- |
| properties | {[key: string]: Object} | 否 | 属性对象。 | | properties | {[key: string]: Object} | 否 | 属性对象,默认为空。 |
| parameters | {[key: string]: Object} | 否 | 自定义参数对象。 | | parameters | {[key: string]: Object} | 否 | 自定义参数对象,默认为空。 |
## Constants<sup>8+</sup> ## Constants<sup>8+</sup>
...@@ -4603,7 +4603,7 @@ onResult: (code: number, result?: AuthResult) =&gt; void ...@@ -4603,7 +4603,7 @@ onResult: (code: number, result?: AuthResult) =&gt; void
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------ | -------------------- | ---- | ------ | | ------ | -------------------- | ---- | ------ |
| code | number | 是 | 鉴权结果码。 | | code | number | 是 | 鉴权结果码。 |
| result | [AuthResult](#authresult9) | 否 | 鉴权结果。 | | result | [AuthResult](#authresult9) | 否 | 鉴权结果,默认为空,表示不接收认证结果信息。 |
**示例:** **示例:**
......
...@@ -2433,7 +2433,7 @@ off(type: 'activate' | 'activating', name: string, callback?: Callback&lt;number ...@@ -2433,7 +2433,7 @@ off(type: 'activate' | 'activating', name: string, callback?: Callback&lt;number
| -------- | -------------------------- | ---- | ------------------------------------------------------------ | | -------- | -------------------------- | ---- | ------------------------------------------------------------ |
| type | 'activate' \| 'activating' | 是 | 取消订阅类型,activate表示取消订阅帐号已激活完成的事件,activating取消订阅帐号正在激活的事件。 | | type | 'activate' \| 'activating' | 是 | 取消订阅类型,activate表示取消订阅帐号已激活完成的事件,activating取消订阅帐号正在激活的事件。 |
| name | string | 是 | 订阅名称,可自定义,要求非空且长度不超过1024字节,需要与订阅接口传入的值保持一致。 | | name | string | 是 | 订阅名称,可自定义,要求非空且长度不超过1024字节,需要与订阅接口传入的值保持一致。 |
| callback | Callback&lt;number&gt; | 否 | 取消订阅系统帐号激活完成与激活中的事件回调,默认返回0。 | | callback | Callback&lt;number&gt; | 否 | 取消订阅系统帐号激活完成与激活中的事件回调,默认为空,表示取消该类型事件的所有回调。 |
**错误码:** **错误码:**
...@@ -5649,7 +5649,7 @@ getAuthInfo(authType?: AuthType): Promise&lt;Array&lt;EnrolledCredInfo&gt;&gt;; ...@@ -5649,7 +5649,7 @@ getAuthInfo(authType?: AuthType): Promise&lt;Array&lt;EnrolledCredInfo&gt;&gt;;
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------- | ---- | -------- | | -------- | ----------------------------------- | ---- | -------- |
| authType | [AuthType](#authtype8) | 否 | 认证类型。| | authType | [AuthType](#authtype8) | 否 | 认证类型,默认为空,表示查询所有认证类型的信息。|
**返回值:** **返回值:**
...@@ -5929,12 +5929,14 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -5929,12 +5929,14 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
**系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.OsAccount **系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.OsAccount
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| ------------ | ---------------------------------------- | ----- | ----------------- | | ------------ | ---------------------------- | ----- | -----|----------------- |
| result | number | 是 | 指示结果。 | | result | number | 是 | 是 | 指示结果。 |
| authSubType | [AuthSubType](#authsubtype8) | 是 | 指示认证凭据子类型。| | authSubType | [AuthSubType](#authsubtype8) | 是 | 是 | 指示认证凭据子类型。|
| remainTimes | number | 否 | 指示剩余次数。 | | remainTimes | number | 是 | 是 | 指示剩余次数。 |
| freezingTime | number | 否 | 指示冻结时间。 | | freezingTime | number | 是 | 是 | 指示冻结时间。 |
| enrollmentProgress<sup>10+</sup> | string | 是 | 是 | 指示录入进度,默认为空。 |
| sensorInfo<sup>10+</sup> | string | 是 | 是 | 指示传感器信息,默认为空。 |
## AuthResult<sup>8+</sup> ## AuthResult<sup>8+</sup>
...@@ -5946,9 +5948,9 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -5946,9 +5948,9 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------------ | ----------- | ----- | ----------------- | | ------------ | ----------- | ----- | ----------------- |
| token | Uint8Array | 否 | 指示认证令牌 | | token | Uint8Array | 否 | 指示认证令牌,默认为空。 |
| remainTimes | number | 否 | 指示剩余次数 | | remainTimes | number | 否 | 指示剩余次数,默认为空。 |
| freezingTime | number | 否 | 指示冻结时间 | | freezingTime | number | 否 | 指示冻结时间,默认为空。 |
## CredentialInfo<sup>8+</sup> ## CredentialInfo<sup>8+</sup>
...@@ -5974,7 +5976,7 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -5974,7 +5976,7 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| 名称 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| ------------ | ----------- | ----- | ----------------- | | ------------ | ----------- | ----- | ----------------- |
| credentialId | Uint8Array | 否 | 指示凭据索引 | | credentialId | Uint8Array | 否 | 指示凭据索引,默认为空。 |
## EnrolledCredInfo<sup>8+</sup> ## EnrolledCredInfo<sup>8+</sup>
...@@ -6004,6 +6006,8 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -6004,6 +6006,8 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| AUTH_SUB_TYPE | 1 | 认证子类型。 | | AUTH_SUB_TYPE | 1 | 认证子类型。 |
| REMAIN_TIMES | 2 | 剩余时间。 | | REMAIN_TIMES | 2 | 剩余时间。 |
| FREEZING_TIME | 3 | 冻结时间。 | | FREEZING_TIME | 3 | 冻结时间。 |
| ENROLLMENT_PROGRESS<sup>10+</sup> | 4 | 录入进度。 |
| SENSOR_INFO<sup>10+</sup> | 5 | 传感器信息。 |
## SetPropertyType<sup>8+</sup> ## SetPropertyType<sup>8+</sup>
...@@ -6047,6 +6051,9 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -6047,6 +6051,9 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| PIN_MIXED | 10002 | 表示自定义混合凭据。 | | PIN_MIXED | 10002 | 表示自定义混合凭据。 |
| FACE_2D | 20000 | 表示2D 人脸凭证。 | | FACE_2D | 20000 | 表示2D 人脸凭证。 |
| FACE_3D | 20001 | 表示3D 人脸凭证。 | | FACE_3D | 20001 | 表示3D 人脸凭证。 |
| FINGERPRINT_CAPACITIVE<sup>10+</sup> | 30000 | 表示电容式指纹。 |
| FINGERPRINT_OPTICAL<sup>10+</sup> | 30001 | 表示光学指纹。 |
| FINGERPRINT_ULTRASONIC<sup>10+</sup> | 30002 | 表示超声波指纹。 |
| DOMAIN_MIXED<sup>9+</sup> | 10240001 | 表示域认证混合凭证。 | | DOMAIN_MIXED<sup>9+</sup> | 10240001 | 表示域认证混合凭证。 |
## AuthTrustLevel<sup>8+</sup> ## AuthTrustLevel<sup>8+</sup>
...@@ -6130,12 +6137,14 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -6130,12 +6137,14 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| 名称 | 值 | 说明 | | 名称 | 值 | 说明 |
| ----------------------------- | ----- | ----------------------------------------------- | | ----------------------------- | ----- | ----------------------------------------------- |
| FINGERPRINT_TIP_GOOD | 0 | 表采集的图像良好。 | | FINGERPRINT_TIP_GOOD | 0 | 表采集的图像良好。 |
| FINGERPRINT_TIP_IMAGER_DIRTY | 1 | 表示由于传感器上可疑或检测到污垢,指纹图像噪声过大。 | | FINGERPRINT_TIP_IMAGER_DIRTY | 1 | 表示由于传感器上可疑或检测到污垢,指纹图像噪声过大。 |
| FINGERPRINT_TIP_INSUFFICIENT | 2 | 表示由于检测到的情况,指纹图像噪声太大,无法处理。 | | FINGERPRINT_TIP_INSUFFICIENT | 2 | 表示由于检测到的情况,指纹图像噪声太大,无法处理。 |
| FINGERPRINT_TIP_PARTIAL | 3 | 示仅检测到部分指纹图像。 | | FINGERPRINT_TIP_PARTIAL | 3 | 示仅检测到部分指纹图像。 |
| FINGERPRINT_TIP_TOO_FAST | 4 | 表示指纹图像由于快速运动而不完整。 | | FINGERPRINT_TIP_TOO_FAST | 4 | 表示指纹图像由于快速运动而不完整。 |
| FINGERPRINT_TIP_TOO_SLOW | 5 | 表示由于缺少运动,指纹图像无法读取。 | | FINGERPRINT_TIP_TOO_SLOW | 5 | 表示由于缺少运动,指纹图像无法读取。 |
| FINGERPRINT_TIP_FINGER_DOWN<sup>10+</sup> | 6 | 表示手指向下。 |
| FINGERPRINT_TIP_FINGER_UP<sup>10+</sup> | 7 | 表示手指向上。 |
## OsAccountInfo ## OsAccountInfo
...@@ -6147,17 +6156,17 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -6147,17 +6156,17 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| ------------------------------ | ------------------------------------------------------------ | ---- | --------------------------------- | | ------------------------------ | ------------------------------------------------------------ | ---- | --------------------------------- |
| localId | number | 是 | 系统帐号ID。 | | localId | number | 是 | 系统帐号ID。 |
| localName | string | 是 | 系统帐号名称。 | | localName | string | 是 | 系统帐号名称。 |
| type | [OsAccountType](#osaccounttype) | 是 | 系统帐号类型 | | type | [OsAccountType](#osaccounttype) | 是 | 系统帐号类型 |
| constraints | Array&lt;string&gt; | 否 | 系统帐号[约束](#系统帐号约束列表) | | constraints | Array&lt;string&gt; | 否 | 系统帐号[约束](#系统帐号约束列表),默认为空。|
| isVerified<sup>8+</sup> | boolean | 是 | 帐号是否验证 | | isVerified<sup>8+</sup> | boolean | 是 | 帐号是否验证 |
| photo<sup>8+</sup> | string | 否 | 系统帐号头像 | | photo<sup>8+</sup> | string | 否 | 系统帐号头像,默认为空。 |
| createTime<sup>8+</sup> | number | 是 | 系统帐号创建时间 | | createTime<sup>8+</sup> | number | 是 | 系统帐号创建时间 |
| lastLoginTime<sup>8+</sup> | number | 否 | 系统帐号最后一次登录时间 | | lastLoginTime<sup>8+</sup> | number | 否 | 系统帐号最后一次登录时间,默认为空。 |
| serialNumber<sup>8+</sup> | number | 是 | 系统帐号SN码 | | serialNumber<sup>8+</sup> | number | 是 | 系统帐号SN码 |
| isActived<sup>8+</sup> | boolean | 是 | 系统帐号激活状态 | | isActived<sup>8+</sup> | boolean | 是 | 系统帐号激活状态 |
| isCreateCompleted<sup>8+</sup> | boolean | 是 | 系统帐号创建是否完整 | | isCreateCompleted<sup>8+</sup> | boolean | 是 | 系统帐号创建是否完整 |
| distributedInfo | [distributedAccount.DistributedInfo](js-apis-distributed-account.md) | 否 | 分布式帐号信息 | | distributedInfo | [distributedAccount.DistributedInfo](js-apis-distributed-account.md) | 否 | 分布式帐号信息,默认为空。 |
| domainInfo<sup>8+</sup> | [DomainAccountInfo](#domainaccountinfo8) | 否 | 域帐号信息 | | domainInfo<sup>8+</sup> | [DomainAccountInfo](#domainaccountinfo8) | 否 | 域帐号信息,默认为空。 |
## DomainAccountInfo<sup>8+</sup> ## DomainAccountInfo<sup>8+</sup>
...@@ -6169,7 +6178,7 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void; ...@@ -6169,7 +6178,7 @@ onAcquireInfo?: (module: number, acquire: number, extraInfo: any) => void;
| ----------- | ------ | ---- | ---------- | | ----------- | ------ | ---- | ---------- |
| domain | string | 是 | 域名。 | | domain | string | 是 | 域名。 |
| accountName | string | 是 | 域帐号名。 | | accountName | string | 是 | 域帐号名。 |
| accountId<sup>10+</sup> | string | 否 | 域帐号标识。<br>**系统接口:** 此接口为系统接口。 | | accountId<sup>10+</sup> | string | 否 | 域帐号标识。<br>**系统接口:** 此接口为系统接口,默认为空。 |
## 系统帐号约束列表 ## 系统帐号约束列表
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册