# LeaveChannelOptions (/zh-CN/api-reference/rtc/flutter/class-leavechanneloptions)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_leavechanneloptions__prototype"></a>

```dart
class LeaveChannelOptions {
  const LeaveChannelOptions(
      {this.stopAudioMixing, this.stopAllEffect, this.stopMicrophoneRecording});

  @JsonKey(name: 'stopAudioMixing')
  final bool? stopAudioMixing;
  @JsonKey(name: 'stopAllEffect')
  final bool? stopAllEffect;
  @JsonKey(name: 'stopMicrophoneRecording')
  final bool? stopMicrophoneRecording;
  factory LeaveChannelOptions.fromJson(Map<String, dynamic> json) =>
      _$LeaveChannelOptionsFromJson(json);
  Map<String, dynamic> toJson() => _$LeaveChannelOptionsToJson(this);
}
```

<a id="class_leavechanneloptions__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="stopaudiomixing"></a>
<Parameter name="stopAudioMixing">

离开频道时，是否停止播放音乐文件及混音：

- true：（默认）停止播放音乐文件及混音。
- false： 不停止播放音乐文件及混音。

</Parameter>
<a id="stopalleffect"></a>
<Parameter name="stopAllEffect">

离开频道时，是否停止播放音效：

- true：（默认）停止播放音效。
- false： 不停止播放音效。

</Parameter>
<a id="stopmicrophonerecording"></a>
<Parameter name="stopMicrophoneRecording">

离开频道时，是否停止麦克风采集：

- true：（默认）停止麦克风采集。
- false： 不停止麦克风采集。

</Parameter>
</ParameterList>
