getCurrentDeviceMute method

Future<bool?> getCurrentDeviceMute(
  1. int type
)

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.

Return:

true: the current device is muted; false: the current device is not muted

Implementation

Future<bool?> getCurrentDeviceMute(int type
    ) async {
  var result = _channel.invokeMethod('getCurrentDeviceMute', {
    "type": type
  });
  return V2TXLiveFlutterResult.boolValue(result);
}