未验证 提交 7c8af0dd 编写于 作者: O openharmony_ci 提交者: Gitee

!21146 修改api上库部分一致性问题

Merge pull request !21146 from zvanxu/master
......@@ -889,8 +889,8 @@ async function createTonePlayerBefore(){
| 名称 | 值 | 说明 |
| :--------------------- | :----- | :-------------------------------------------- |
| VOLUME_UP | 0 | 向上调节音量。 |
| VOLUME_DOWN | 1 | 向下调节音量。 |
| VOLUME_UP | 0 | 向上调节音量。<br/>此接口为系统接口。 |
| VOLUME_DOWN | 1 | 向下调节音量。<br/>此接口为系统接口。 |
## AudioManager
......@@ -3081,8 +3081,8 @@ adjustVolumeByStep(adjustType: VolumeAdjustType, callback: AsyncCallback&lt;void
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | Invalid parameter error |
| 6800301 | System error |
| 6800101 | Invalid parameter error. Return by callback. |
| 6800301 | System error. Return by callback. |
**示例:**
......@@ -3128,8 +3128,8 @@ adjustVolumeByStep(adjustType: VolumeAdjustType): Promise&lt;void&gt;
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | Invalid parameter error |
| 6800301 | System error |
| 6800101 | Invalid parameter error. Return by promise. |
| 6800301 | System error. Return by promise. |
**示例:**
......@@ -3160,7 +3160,7 @@ adjustSystemVolumeByStep(volumeType: AudioVolumeType, adjustType: VolumeAdjustTy
| 参数名 | 类型 | 必填 | 说明 |
| ---------- | ----------------------------------- | ---- | -------------------------------------------------------- |
| volumeType | [AudioVolumeType](#audiovolumetype) | 是 | 音量流类型。 |
| adjustType | [VolumeAdjustType](#volumeadjusttype10) | 是 | 音量调节方向。 |
| adjustType | [VolumeAdjustType](#volumeadjusttype10) | 是 | 音量调节方向。 |
| callback | AsyncCallback&lt;void&gt; | 是 | 回调表示成功还是失败。 |
**错误码:**
......@@ -3169,8 +3169,8 @@ adjustSystemVolumeByStep(volumeType: AudioVolumeType, adjustType: VolumeAdjustTy
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | Invalid parameter error |
| 6800301 | System error |
| 6800101 | Invalid parameter error. Return by callback. |
| 6800301 | System error. Return by callback. |
**示例:**
......@@ -3216,8 +3216,8 @@ adjustSystemVolumeByStep(volumeType: AudioVolumeType, adjustType: VolumeAdjustTy
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | Invalid parameter error |
| 6800301 | System error |
| 6800101 | Invalid parameter error. Return by promise. |
| 6800301 | System error. Return by promise. |
**示例:**
......@@ -3235,8 +3235,6 @@ getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: De
获取音量增益dB值,使用callback方式异步返回结果。
**系统接口:** 该接口为系统接口
**系统能力:** SystemCapability.Multimedia.Audio.Volume
**参数:**
......@@ -3254,8 +3252,8 @@ getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: De
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | Invalid parameter error |
| 6800301 | System error |
| 6800101 | Invalid parameter error. Return by callback. |
| 6800301 | System error. Return by callback. |
**示例:**
......@@ -3274,8 +3272,6 @@ getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: De
获取音量增益dB值,使用Promise方式异步返回结果。
**系统接口:** 该接口为系统接口
**系统能力:** SystemCapability.Multimedia.Audio.Volume
**参数:**
......@@ -3298,8 +3294,8 @@ getSystemVolumeInDb(volumeType: AudioVolumeType, volumeLevel: number, device: De
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | Invalid parameter error |
| 6800301 | System error |
| 6800101 | Invalid parameter error. Return by promise. |
| 6800301 | System error. Return by promise. |
**示例:**
......@@ -6015,7 +6011,7 @@ audioRenderer.on('stateChange', (state) => {
### on('outputDeviceChange') <sup>10+</sup>
on(type: 'outputDeviceChange', callback: Callback<AudioDeviceDescriptors\>): void
on(type: 'outputDeviceChange', callback: Callback\<AudioDeviceDescriptors>): void;
订阅监听音频输出设备变化。
......@@ -6032,7 +6028,7 @@ on(type: 'outputDeviceChange', callback: Callback<AudioDeviceDescriptors\>): voi
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | if input parameter value error |
| 6800101 | if input parameter value error. |
**示例:**
......@@ -6047,7 +6043,7 @@ audioRenderer.on('outputDeviceChange', (deviceChangeInfo) => {
```
### off('outputDeviceChange') <sup>10+</sup>
off(type: 'outputDeviceChange', callback?: Callback<AudioDeviceDescriptors\>): void
off(type: 'outputDeviceChange', callback?: Callback\<AudioDeviceDescriptors>): void;
取消订阅监听音频输出设备变化。
......@@ -6058,13 +6054,13 @@ off(type: 'outputDeviceChange', callback?: Callback<AudioDeviceDescriptors\>): v
| 参数名 | 类型 | 必填 | 说明 |
| :------- | :------------------------- | :--- | :------------------------------------------ |
| type | string | 是 | 事件回调类型,支持的事件为:'outputDeviceChange'。 |
| callback | Callback\<[AudioDeviceDescriptors](#audiodevicedescriptors)> | | 取消监听的音频设备变化。 |
| callback | Callback\<[AudioDeviceDescriptors](#audiodevicedescriptors)> | | 取消监听的音频设备变化。 |
**错误码:**
| 错误码ID | 错误信息 |
| ------- | --------------------------------------------|
| 6800101 | if input parameter value error |
| 6800101 | if input parameter value error. |
**示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册