getCurrentDeviceVolume method
Get the volume of the current device (Support for 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 TRTCCloudDef.TXMediaDeviceTypeMic or TRTCCloudDef.TXMediaDeviceTypeSpeaker.
Returned value:
Volume
Implementation
Future<int?> getCurrentDeviceVolume(int type) {
return _channel.invokeMethod('getCurrentDeviceVolume', {"type": type});
}