AgoraUserOfflineReason Constants Reference

Declared in AgoraEnumerates.h

AgoraUserOfflineReason

离线原因

Definition

typedef NS_ENUM(NSUInteger, AgoraUserOfflineReason ) {
   AgoraUserOfflineReasonQuit = 0,
   AgoraUserOfflineReasonDropped = 1,
   AgoraUserOfflineReasonBecomeAudience = 2,
};

Constants

AgoraUserOfflineReasonQuit

0: 用户主动离开。在 iOS 系统上,用户通过手势滑动杀死 app 后,SDK 会报告该原因码。

Declared In AgoraEnumerates.h.

AgoraUserOfflineReasonDropped

1: 因过长时间收不到对方数据包,超时掉线。注意:由于 SDK 使用的是不可靠通道,也有可能对方主动离开本方没收到对方离开消息而误判为超时掉线

Declared In AgoraEnumerates.h.

AgoraUserOfflineReasonBecomeAudience

2: 用户身份从主播切换为观众时触发

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h