AgoraNetworkType Constants Reference

Declared in AgoraEnumerates.h

AgoraNetworkType

网络连接类型

Definition

typedef NS_ENUM(NSInteger, AgoraNetworkType ) {
   AgoraNetworkTypeUnknown = -1,
   AgoraNetworkTypeDisconnected = 0,
   AgoraNetworkTypeLAN = 1,
   AgoraNetworkTypeWIFI = 2,
   AgoraNetworkTypeMobile2G = 3,
   AgoraNetworkTypeMobile3G = 4,
   AgoraNetworkTypeMobile4G = 5,
   AgoraNetworkTypeMobile5G = 6,
};

Constants

AgoraNetworkTypeUnknown

-1: 网络连接类型未知。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeDisconnected

0: 网络连接已断开。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeLAN

1: 网络类型为 LAN。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeWIFI

2: 网络类型为 Wi-Fi(包含热点)。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeMobile2G

3: 网络类型为 2G 移动网络。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeMobile3G

4: 网络类型为 3G 移动网络。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeMobile4G

5: 网络类型为 4G 移动网络。

Declared In AgoraEnumerates.h.

AgoraNetworkTypeMobile5G

6: 网络类型为 5G 移动网络。

Available in v3.5.1

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h