getCurrentDeviceVolume method Null safety
- int type
Get the volume of the current device
Note: this API supports only the macOS and Windows platforms
Parameters:
type Device type, which specifies the type of devices to be obtained. For more information, please see the definition of TXMediaDeviceType
. type
can only be TXMediaDeviceTypeMic
or TXMediaDeviceTypeSpeaker
.
Returned value:
Volume
Implementation
Future<int?> getCurrentDeviceVolume(int type
) {
return _channel.invokeMethod('getCurrentDeviceVolume', {
"type": type
});
}