Class
MobiledgeXiOSLibrary.NetworkInterface
public class NetworkInterface
Contains functions related to network interfaces (cellular, wifi)
Relationships
Member Of
MobiledgeXiOSLibrary
Swift MobiledgeX SDK namespace Used for "namespacing" purposes to prevent naming conflicts from common names (Util, NetworkInterface, etc.)
Properties
CELLULAR
let CELLULAR = "pdp_ip0"
WIFI
let WIFI = "en0"
Methods
hasWifiInterface()
public static func hasWifiInterface() -> Bool
Returns true if device has wifi interface (ie. on wifi network)
hasCellularInterface()
public static func hasCellularInterface() -> Bool
Returns true if device has cellular interface
hasWifi()
public static func hasWifi() -> Bool
Returns true if an ip address is assigned to the wifi interface
hasCellular()
public static func hasCellular() -> Bool
Returns true if an ip address is assigned to the cellular interface
isRoaming()
public static func isRoaming() throws -> Bool
Compares the ISO Country code of the user's location with the ISO Country of the user's carrier. Roaming if not equal
getIPAddress(netInterfaceType:)
public static func getIPAddress(netInterfaceType: String?) -> String?
Gets the client IP Address on the interface specified