# FLeaveChannelOptions (/zh-CN/api-reference/rtc/unreal-blueprint/class-leavechanneloptions)

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

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

```cpp
USTRUCT(BlueprintType)
struct FLeaveChannelOptions
{
	GENERATED_BODY()
public:
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LeaveChannelOptions")
	bool stopAudioMixing = true;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LeaveChannelOptions")
	bool stopAllEffect = true;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|LeaveChannelOptions")
	bool stopMicrophoneRecording = true;

	FLeaveChannelOptions() {}
	FLeaveChannelOptions(const agora::rtc::LeaveChannelOptions& AgoraData) {
		this->stopAudioMixing = AgoraData.stopAudioMixing;
		this->stopAllEffect = AgoraData.stopAllEffect;
		this->stopMicrophoneRecording = AgoraData.stopMicrophoneRecording;
	}
	agora::rtc::LeaveChannelOptions CreateAgoraData() const {
		agora::rtc::LeaveChannelOptions AgoraData;
		AgoraData.stopAudioMixing = this->stopAudioMixing;
		AgoraData.stopAllEffect = this->stopAllEffect;
		AgoraData.stopMicrophoneRecording = this->stopMicrophoneRecording;
		return AgoraData;
	}
	void FreeAgoraData(agora::rtc::LeaveChannelOptions& AgoraData) const {
	}
};
```

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

## 属性 [#属性]

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

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

<a id="class_leavechanneloptions__ul_ttv_f2n_3qb"></a>

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

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

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

<a id="class_leavechanneloptions__ul_tgl_m2n_3qb"></a>

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

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

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

<a id="class_leavechanneloptions__ul_dy1_s2n_3qb"></a>

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

</Parameter>
</ParameterList>
