# AgoraUserOfflineReason (/zh-CN/api-reference/rtc/macos/enum-userofflinereasontype)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 枚举值 [#枚举值]
(0):用户主动退出通话。
(1):在一定时间内未收到数据包,SDK 超时,用户掉线。
:::note
注: 如果用户退出通话但未将该消息传递给 SDK(由于信道不可靠),SDK 会认为该用户掉线。
:::
(2):用户将客户端角色从主播切换为观众。