getCurrentDeviceMute method
Query the mute status 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:
true: the current device is muted; false: the current device is not muted
Implementation
Future<bool?> getCurrentDeviceMute(int type) {
return _channel.invokeMethod('getCurrentDeviceMute', {"type": type});
}