# USER_OFFLINE_REASON_TYPE (/zh-CN/api-reference/rtc/cpp-all-platforms/enum-userofflinereasontype)

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

<a id="enum_userofflinereasontype__parameters"></a>

## 枚举值 [#枚举值]

<ParameterList>
<a id="user_offline_quit"></a>
<Parameter name="USER_OFFLINE_QUIT">

（0）：用户主动退出通话。

</Parameter>
<a id="user_offline_dropped"></a>
<Parameter name="USER_OFFLINE_DROPPED">

（1）：在一定时间内未收到数据包，SDK 超时，用户掉线。

:::note
注： 如果用户退出通话但未将消息传递给 SDK（由于信道不可靠），SDK 会认为用户掉线。
:::

</Parameter>
<a id="user_offline_become_audience"></a>
<Parameter name="USER_OFFLINE_BECOME_AUDIENCE">

（2）：用户将客户端角色从主播切换为观众。

</Parameter>
</ParameterList>
