# UserOfflineReasonType (/zh-CN/api-reference/rtc/flutter/enum-userofflinereasontype)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 枚举值 [#枚举值]
0: 用户主动离开。
1: 因过长时间收不到对方数据包,超时掉线。
:::note
注: 由于 SDK 使用的是不可靠通道,也有可能对方主动离开频道,但是本地没收到对方离开消息而误判为超时掉线。
:::
2: 用户身份从主播切换为观众。