getCurrentDeviceMute method

Future<bool?> getCurrentDeviceMute(
  1. int type

Query the mute status of the current device (Support for macOS and Windows platforms)


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


Future<bool?> getCurrentDeviceMute(int type) {
  return _channel.invokeMethod('getCurrentDeviceMute', {"type": type});