getCurrentDeviceMute method
- int type
查询当前设备的静音状态(此API仅支持 macOS 和 Windows 平台)
参数:
type 设备类型,指定要获取的设备类型。更多信息,请参见 TXMediaDeviceType 的定义。type 只能是 TRTCCloudDef.TXMediaDeviceTypeMic 或 TRTCCloudDef.TXMediaDeviceTypeSpeaker。
返回值:
true:当前设备已静音;false:当前设备未静音
Implementation
Future<bool?> getCurrentDeviceMute(int type) {
return _channel.invokeMethod('getCurrentDeviceMute', {"type": type});
}