An interface that a network connection uses to send and receive data.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
- Xcode 10.0+
Framework
- Network
Declaration
struct NWInterface
An interface that a network connection uses to send and receive data.
SDKs
Framework
struct NWInterface
let type: NWInterface .Interface Type
The type of the interface, such as Wi-Fi or loopback.
enum NWInterface .Interface Type
Types of network interfaces, based on their link layer media types.
let name: String
The name of the interface.
let index: Int
The system interface index associated with the interface.
var debug Description: String
The description of the network interface.
static func != (NWInterface, NWInterface) -> Bool
Returns a Boolean value indicating whether two values are not equal.
struct NWPath
An object that contains information about the properties of the network that a connection uses, or that are available to your app.
class NWPath Monitor
An observer that you use to monitor and react to network changes.