NetworkConnection

public enum NetworkConnection

Describes how the device is currently connected to the internet.

  • The device has no connection to the internet.

    Declaration

    Swift

    case noConnection
  • The device is connected to a WiFi network.

    Declaration

    Swift

    case WiFi
  • The device is using cellular data (i.e. 4G, 3G, or 2G).

    Declaration

    Swift

    case WWAN
  • Raw string representation of the NetworkConnection.

    Declaration

    Swift

    public var description: String