@@ -1654,7 +1621,7 @@ None
**Example**
```
-audioManager.setDeviceActive(audio.DeviceType.SPEAKER, true, (err)=> {
+audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true, (err)=> {
if (err) {
console.error('Failed to set the active status of the device. ${err.message}');
return;
@@ -1663,7 +1630,7 @@ audioManager.setDeviceActive(audio.DeviceType.SPEAKER, true, (err)=> {
})
```
-### setDeviceActive\(deviceType: DeviceType, active: boolean\): Promise7+
+### setDeviceActive\(deviceType: ActiveDeviceType, active: boolean\): Promise
Sets a device to the active state. This method uses a promise to return the execution result.
@@ -1682,7 +1649,7 @@ Sets a device to the active state. This method uses a promise to return the exec
@@ -1721,12 +1688,12 @@ Sets a device to the active state. This method uses a promise to return the exec
**Example**
```
-audioManager.setDeviceActive(audio.DeviceType.SPEAKER, true).then(()=>
+audioManager.setDeviceActive(audio.ActiveDeviceType.SPEAKER, true).then(()=>
console.log('Promise returned to indicate that the device is set to the active status.');
)
```
-### isDeviceActive\(deviceType: DeviceType, callback: AsyncCallback\): void7+
+### isDeviceActive\(deviceType: DeviceType, callback: AsyncCallback\): void
Checks whether a device is active. This method uses an asynchronous callback to return the query result.
@@ -1745,7 +1712,7 @@ Checks whether a device is active. This method uses an asynchronous callback to
@@ -1771,7 +1738,7 @@ None
**Example**
```
-audioManager.isDeviceActive(audio.DeviceType.SPEAKER, (err, value) => {
+audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER, (err, value) => {
if (err) {
console.error('Failed to obtain the active status of the device. ${err.message}');
return;
@@ -1780,7 +1747,7 @@ audioManager.isDeviceActive(audio.DeviceType.SPEAKER, (err, value) => {
})
```
-### isDeviceActive\(deviceType: DeviceType\): Promise7+
+### isDeviceActive\(deviceType: ActiveDeviceType\): Promise
Checks whether a device is active. This method uses a promise to return the query result.
@@ -1799,7 +1766,7 @@ Checks whether a device is active. This method uses a promise to return the quer
@@ -1829,12 +1796,12 @@ Checks whether a device is active. This method uses a promise to return the quer
**Example**
```
-audioManager.isDeviceActive(audio.DeviceType.SPEAKER).then((value) =>
+audioManager.isDeviceActive(audio.ActiveDeviceType.SPEAKER).then((value) =>
console.log('Promise returned to indicate that the active status of the device is obtained.' + value);
)
```
-### setMicrophoneMute\(mute: boolean, callback: AsyncCallback\): void7+
+### setMicrophoneMute\(mute: boolean, callback: AsyncCallback\): void
Mutes or unmutes the microphone. This method uses an asynchronous callback to return the execution result.
@@ -1888,7 +1855,7 @@ audioManager.setMicrophoneMute(true, (err) => {
})
```
-### setMicrophoneMute\(mute: boolean\): Promise7+
+### setMicrophoneMute\(mute: boolean\): Promise
Mutes or unmutes the microphone. This method uses a promise to return the execution result.
@@ -1942,7 +1909,7 @@ audioManager.setMicrophoneMute(true).then(() =>
)
```
-### isMicrophoneMute\(callback: AsyncCallback\): void7+
+### isMicrophoneMute\(callback: AsyncCallback\): void
Checks whether the microphone is muted. This method uses an asynchronous callback to return the query result.
@@ -1987,7 +1954,7 @@ audioManager.isMicrophoneMute((err, value) => {
})
```
-### isMicrophoneMute\(\): Promise7+
+### isMicrophoneMute\(\): Promise
Checks whether the microphone is muted. This method uses a promise to return the query result.
@@ -2020,11 +1987,11 @@ audioManager.isMicrophoneMute().then((value) =>
)
```
-## AudioDeviceDescriptor
+## AudioDeviceDescriptor
Describes an audio device.
-### Attributes
+### Attributes