You need to sign in or sign up before continuing.
未验证 提交 6f4b296b 编写于 作者: O openharmony_ci 提交者: Gitee

!9345 空行修改

Merge pull request !9345 from zengyawen/master
...@@ -2104,6 +2104,7 @@ onResult: (code: number, result: {[key: string]: any}) => void ...@@ -2104,6 +2104,7 @@ onResult: (code: number, result: {[key: string]: any}) => void
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------ | -------------------- | ---- | ------ | | ------ | -------------------- | ---- | ------ |
| code | number | 是 | 鉴权结果码。 | | code | number | 是 | 鉴权结果码。 |
...@@ -2134,6 +2135,7 @@ onRequestRedirected: (request: Want) => void ...@@ -2134,6 +2135,7 @@ onRequestRedirected: (request: Want) => void
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ------- | ---- | ---- | ---------- | | ------- | ---- | ---- | ---------- |
| request | Want | 是 | 用于跳转的请求信息。 | | request | Want | 是 | 用于跳转的请求信息。 |
...@@ -2191,6 +2193,7 @@ addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: ...@@ -2191,6 +2193,7 @@ addAccountImplicitly(authType: string, callerBundleName: string, options: {[key:
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ---------------- | --------------------- | ---- | --------------- | | ---------------- | --------------------- | ---- | --------------- |
| authType | string | 是 | 应用帐号的鉴权类型。 | | authType | string | 是 | 应用帐号的鉴权类型。 |
...@@ -2207,6 +2210,7 @@ authenticate(name: string, authType: string, callerBundleName: string, options: ...@@ -2207,6 +2210,7 @@ authenticate(name: string, authType: string, callerBundleName: string, options:
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 接口名 | 类型 | 必填 | 说明 | | 接口名 | 类型 | 必填 | 说明 |
| ---------------- | --------------------- | ---- | --------------- | | ---------------- | --------------------- | ---- | --------------- |
| name | string | 是 | 应用帐号的名称。 | | name | string | 是 | 应用帐号的名称。 |
...@@ -2224,6 +2228,7 @@ verifyCredential(name: string, options: VerifyCredentialOptions, callback: Authe ...@@ -2224,6 +2228,7 @@ verifyCredential(name: string, options: VerifyCredentialOptions, callback: Authe
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 接口名 | 类型 | 必填 | 说明 | | 接口名 | 类型 | 必填 | 说明 |
| ---------------- | --------------------- | ---- | --------------- | | ---------------- | --------------------- | ---- | --------------- |
| name | string | 是 | 应用帐号的名称。 | | name | string | 是 | 应用帐号的名称。 |
...@@ -2239,6 +2244,7 @@ setProperties(options: SetPropertiesOptions, callback: AuthenticatorCallback): v ...@@ -2239,6 +2244,7 @@ setProperties(options: SetPropertiesOptions, callback: AuthenticatorCallback): v
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 接口名 | 类型 | 必填 | 说明 | | 接口名 | 类型 | 必填 | 说明 |
| ---------------- | --------------------- | ---- | --------------- | | ---------------- | --------------------- | ---- | --------------- |
| options | [SetPropertiesOptions](#setpropertiesoptions9) | 是 | 设置属性的可选项。 | | options | [SetPropertiesOptions](#setpropertiesoptions9) | 是 | 设置属性的可选项。 |
...@@ -2253,6 +2259,7 @@ checkAccountLabels(name: string, labels: Array<string>, callback: Authenti ...@@ -2253,6 +2259,7 @@ checkAccountLabels(name: string, labels: Array<string>, callback: Authenti
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 接口名 | 类型 | 必填 | 说明 | | 接口名 | 类型 | 必填 | 说明 |
| ---------------- | --------------------- | ---- | --------------- | | ---------------- | --------------------- | ---- | --------------- |
| name | string | 是 | 应用帐号的名称。 | | name | string | 是 | 应用帐号的名称。 |
...@@ -2268,6 +2275,7 @@ isAccountRemovable(name: string, callback: AuthenticatorCallback): void; ...@@ -2268,6 +2275,7 @@ isAccountRemovable(name: string, callback: AuthenticatorCallback): void;
**系统能力:** SystemCapability.Account.AppAccount **系统能力:** SystemCapability.Account.AppAccount
**参数:** **参数:**
| 接口名 | 类型 | 必填 | 说明 | | 接口名 | 类型 | 必填 | 说明 |
| ---------------- | --------------------- | ---- | --------------- | | ---------------- | --------------------- | ---- | --------------- |
| name | string | 是 | 应用帐号的名称。 | | name | string | 是 | 应用帐号的名称。 |
......
...@@ -21,12 +21,13 @@ getDistributedAccountAbility(): DistributedAccountAbility ...@@ -21,12 +21,13 @@ getDistributedAccountAbility(): DistributedAccountAbility
**系统能力:** SystemCapability.Account.OsAccount **系统能力:** SystemCapability.Account.OsAccount
- 返回值: **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| [DistributedAccountAbility](#distributedaccountability) | 返回一个实例,实例提供查询和更新分布式帐号登录状态方法。 | | [DistributedAccountAbility](#distributedaccountability) | 返回一个实例,实例提供查询和更新分布式帐号登录状态方法。 |
- 示例: **示例:**
```js ```js
const accountAbility = account_distributedAccount.getDistributedAccountAbility(); const accountAbility = account_distributedAccount.getDistributedAccountAbility();
``` ```
...@@ -45,12 +46,13 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v ...@@ -45,12 +46,13 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v
**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。 **需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。
- 参数: **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| callback | AsyncCallback<[DistributedInfo](#distributedinfo)> | 是 | 获取分布式帐号信息的回调。 | | callback | AsyncCallback<[DistributedInfo](#distributedinfo)> | 是 | 获取分布式帐号信息的回调。 |
- 示例: **示例:**
```js ```js
const accountAbility = account_distributedAccount.getDistributedAccountAbility(); const accountAbility = account_distributedAccount.getDistributedAccountAbility();
accountAbility.queryOsAccountDistributedInfo((err, data) => { accountAbility.queryOsAccountDistributedInfo((err, data) => {
...@@ -70,12 +72,13 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo> ...@@ -70,12 +72,13 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo>
**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。 **需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。
- 返回值: **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| Promise<[DistributedInfo](#distributedinfo)> | Promise实例,用于获取异步返回结果。 | | Promise<[DistributedInfo](#distributedinfo)> | Promise实例,用于获取异步返回结果。 |
- 示例: **示例:**
```js ```js
const accountAbility = account_distributedAccount.getDistributedAccountAbility(); const accountAbility = account_distributedAccount.getDistributedAccountAbility();
accountAbility.queryOsAccountDistributedInfo().then((data) => { accountAbility.queryOsAccountDistributedInfo().then((data) => {
...@@ -96,13 +99,14 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCall ...@@ -96,13 +99,14 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCall
**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS。 **需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS。
- 参数: **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| accountInfo | [DistributedInfo](#distributedinfo) | 是 | 分布式帐号信息。 | | accountInfo | [DistributedInfo](#distributedinfo) | 是 | 分布式帐号信息。 |
| callback | AsyncCallback<void> | 是 | 更新分布式帐号信息的回调。 | | callback | AsyncCallback<void> | 是 | 更新分布式帐号信息的回调。 |
- 示例: **示例:**
```js ```js
const accountAbility = account_distributedAccount.getDistributedAccountAbility(); const accountAbility = account_distributedAccount.getDistributedAccountAbility();
let accountInfo = {id: '12345', name: 'ZhangSan', event: 'Ohos.account.event.LOGIN'}; let accountInfo = {id: '12345', name: 'ZhangSan', event: 'Ohos.account.event.LOGIN'};
...@@ -121,17 +125,19 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void&gt ...@@ -121,17 +125,19 @@ updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise<void&gt
**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS。 **需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS。
- 参数: **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| accountInfo | [DistributedInfo](#distributedinfo) | 是 | 分布式帐户信息。 | | accountInfo | [DistributedInfo](#distributedinfo) | 是 | 分布式帐户信息。 |
- 返回值: **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| Promise<void> | Promise实例,用于获取异步返回结果。 | | Promise<void> | Promise实例,用于获取异步返回结果。 |
- 示例: **示例:**
```js ```js
const accountAbility = account_distributedAccount.getDistributedAccountAbility(); const accountAbility = account_distributedAccount.getDistributedAccountAbility();
let accountInfo = {id: '12345', name: 'ZhangSan', event: 'Ohos.account.event.LOGIN'}; let accountInfo = {id: '12345', name: 'ZhangSan', event: 'Ohos.account.event.LOGIN'};
......
...@@ -45,8 +45,8 @@ getNativeHeapAllocatedSize(): bigint ...@@ -45,8 +45,8 @@ getNativeHeapAllocatedSize(): bigint
**系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | --------------------------------- | | ------ | --------------------------------- |
| bigint | 返回native heap内存的已分配内存,单位为kB。 | | bigint | 返回native heap内存的已分配内存,单位为kB。 |
...@@ -68,13 +68,12 @@ getNativeHeapFreeSize(): bigint ...@@ -68,13 +68,12 @@ getNativeHeapFreeSize(): bigint
**系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | ------------------------------- | | ------ | ------------------------------- |
| bigint | 返回native heap内存的空闲内存,单位为kB。 | | bigint | 返回native heap内存的空闲内存,单位为kB。 |
**示例:** **示例:**
```js ```js
let nativeHeapFreeSize = hidebug.getNativeHeapFreeSize(); let nativeHeapFreeSize = hidebug.getNativeHeapFreeSize();
...@@ -89,13 +88,12 @@ getPss(): bigint ...@@ -89,13 +88,12 @@ getPss(): bigint
**系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | ------------------------- | | ------ | ------------------------- |
| bigint | 返回应用进程PSS内存大小,单位为kB。 | | bigint | 返回应用进程PSS内存大小,单位为kB。 |
**示例:** **示例:**
```js ```js
let pss = hidebug.getPss(); let pss = hidebug.getPss();
...@@ -110,8 +108,8 @@ getSharedDirty(): bigint ...@@ -110,8 +108,8 @@ getSharedDirty(): bigint
**系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | -------------------------- | | ------ | -------------------------- |
| bigint | 返回进程的共享脏内存大小,单位为kB。 | | bigint | 返回进程的共享脏内存大小,单位为kB。 |
...@@ -130,8 +128,8 @@ getPrivateDirty(): bigint ...@@ -130,8 +128,8 @@ getPrivateDirty(): bigint
**系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | -------------------------- | | ------ | -------------------------- |
| bigint | 返回进程的私有脏内存大小,单位为kB。 | | bigint | 返回进程的私有脏内存大小,单位为kB。 |
...@@ -152,8 +150,8 @@ getCpuUsage(): number ...@@ -152,8 +150,8 @@ getCpuUsage(): number
**系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug **系统能力:** SystemCapability.HiviewDFX.HiProfiler.HiDebug
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | -------------------------- | | ------ | -------------------------- |
| number | 获取进程的cpu占用率。 | | number | 获取进程的cpu占用率。 |
...@@ -245,6 +243,7 @@ getServiceDump(serviceid : number) : string ...@@ -245,6 +243,7 @@ getServiceDump(serviceid : number) : string
| serviceid | number | 是 | 基于该用户输入的service id获取系统服务信息。| | serviceid | number | 是 | 基于该用户输入的service id获取系统服务信息。|
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| ------ | -------------------------- | | ------ | -------------------------- |
| string | 返回dump的service信息文件的绝对路径。 | | string | 返回dump的service信息文件的绝对路径。 |
......
...@@ -291,6 +291,7 @@ enableFlag(id: HiTraceId, flag: HiTraceFlag): void ...@@ -291,6 +291,7 @@ enableFlag(id: HiTraceId, flag: HiTraceFlag): void
**系统能力:** SystemCapability.HiviewDFX.HiTrace **系统能力:** SystemCapability.HiviewDFX.HiTrace
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| id | [HiTraceId](#hitraceid) | 是 | 需要置位指定跟踪标志的HiTraceId实例。 | | id | [HiTraceId](#hitraceid) | 是 | 需要置位指定跟踪标志的HiTraceId实例。 |
......
...@@ -117,6 +117,7 @@ getAllNets(callback: AsyncCallback<Array<NetHandle>>): void ...@@ -117,6 +117,7 @@ getAllNets(callback: AsyncCallback<Array<NetHandle>>): void
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| callback | AsyncCallback<Array<[NetHandle](#nethandle)>> | 是 | 回调函数。 | | callback | AsyncCallback<Array<[NetHandle](#nethandle)>> | 是 | 回调函数。 |
...@@ -142,6 +143,7 @@ getAllNets(): Promise<Array<NetHandle>> ...@@ -142,6 +143,7 @@ getAllNets(): Promise<Array<NetHandle>>
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| Promise<Array<[NetHandle](#nethandle)>> | 以Promise形式返回激活的数据网络列表。 | | Promise<Array<[NetHandle](#nethandle)>> | 以Promise形式返回激活的数据网络列表。 |
...@@ -285,6 +287,7 @@ reportNetConnected(netHandle: NetHandle, callback: AsyncCallback<void>): v ...@@ -285,6 +287,7 @@ reportNetConnected(netHandle: NetHandle, callback: AsyncCallback<void>): v
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 |
...@@ -312,6 +315,7 @@ reportNetConnected(netHandle: NetHandle): Promise<void> ...@@ -312,6 +315,7 @@ reportNetConnected(netHandle: NetHandle): Promise<void>
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 |
...@@ -343,6 +347,7 @@ reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback<void>) ...@@ -343,6 +347,7 @@ reportNetDisconnected(netHandle: NetHandle, callback: AsyncCallback<void>)
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 |
...@@ -370,6 +375,7 @@ reportNetDisconnected(netHandle: NetHandle): Promise<void> ...@@ -370,6 +375,7 @@ reportNetDisconnected(netHandle: NetHandle): Promise<void>
**系统能力**:SystemCapability.Communication.NetManager.Core **系统能力**:SystemCapability.Communication.NetManager.Core
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 |
......
...@@ -21,6 +21,7 @@ getAccountManager(): AccountManager ...@@ -21,6 +21,7 @@ getAccountManager(): AccountManager
**系统能力:** SystemCapability.Account.OsAccount **系统能力:** SystemCapability.Account.OsAccount
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| --------------------------------- | ------------------------ | | --------------------------------- | ------------------------ |
| [AccountManager](#accountmanager) | 获取系统帐号能力的实例。 | | [AccountManager](#accountmanager) | 获取系统帐号能力的实例。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册