setVolume(audioType: AudioVolumeType,volume: number,callback: AsyncCallback<void>): void
- |
-Sets the volume of a stream asynchronously and uses a callback to return the execution result.
- |
-
-setVolume(audioType: AudioVolumeType,volume: number): Promise<void>
- |
-Sets the volume of a stream asynchronously and uses a Promise to return the execution result.
- |
-
-getVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
- |
-Obtains the volume of a stream asynchronously and uses a callback to return the result.
- |
-
-getVolume(audioType: AudioVolumeType): Promise<number>
- |
-Obtains the volume of a stream asynchronously and uses a Promise to return the result.
- |
-
-getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
- |
-Obtains the minimum volume of a stream asynchronously and uses a callback to return the result.
- |
-
-getMinVolume(audioType: AudioVolumeType): Promise<number>
- |
-Obtains the minimum volume of a stream asynchronously and uses a Promise to return the result.
- |
-
-getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
- |
-Obtains the maximum volume of a stream asynchronously and uses a callback to return the result.
- |
-
-getMaxVolume(audioType: AudioVolumeType): Promise<number>
- |
-Obtains the maximum volume of a stream asynchronously and uses a Promise to return the result.
- |
-
-getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void
- |
-Obtains the device list asynchronously and uses a callback to return the result.
- |
-
-getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>
- |
-Obtains the device list asynchronously and uses a Promise to return the result.
- |
-
-setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback<void>): void
- |
-Activates the device asynchronously and uses a callback to return the execution result.
- |
-
-setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise<void>
- |
-Activates the device asynchronously and uses a Promise to return the execution result.
- |
-
-isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback<boolean>): void
- |
-Checks whether a device is active asynchronously and uses a callback to return the result.
- |
-
-isDeviceActive(deviceType: ActiveDeviceType): Promise<boolean>
- |
-Checks whether a device is active asynchronously and uses a Promise to return the result.
- |
-
-on(type: 'deviceChange', callback: AsyncCallback<DeviceChangeAction>): void
- |
-Subscribes to device change events. Registered clients will receieve the callback when a device is connected/disconnected.
- |
-
-setAudioScene(scene: AudioScene, callback: AsyncCallback<void>): void
- |
-Sets the audio scene mode asynchronously and uses a callback to return the execution result.
- |
-
-setAudioScene(scene: AudioScene): Promise<void>
- |
-Sets the audio scene mode asynchronously and uses a Promise to return the execution result.
- |
-
-getAudioScene(callback: AsyncCallback<AudioScene>): void
- |
-Obtains the audio scene mode asynchronously and uses a callback to return the result.
- |
-
-getAudioScene(): Promise<AudioScene>
- |
-Obtains the audio scene mode asynchronously and uses a Promise to return the result.
- |
-
-
-