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 execution result.
|
getVolume(audioType: AudioVolumeType): Promise<number>
|
Obtains the volume of a stream asynchronously and uses a Promise to return the execution result.
|
getMinVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
|
Obtains the minimum volume of a stream asynchronously and uses a callback to return the execution result.
|
getMinVolume(audioType: AudioVolumeType): Promise<number>
|
Obtains the minimum volume of a stream asynchronously and uses a Promise to return the execution result.
|
getMaxVolume(audioType: AudioVolumeType, callback: AsyncCallback<number>): void
|
Obtains the maximum volume of a stream asynchronously and uses a callback to return the execution result.
|
getMaxVolume(audioType: AudioVolumeType): Promise<number>
|
Obtains the maximum volume of a stream asynchronously and uses a Promise to return the execution result.
|
getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void
|
Obtains the device list asynchronously and uses a callback to return the execution result.
|
getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>
|
Obtains the device list asynchronously and uses a Promise to return the execution result.
|