interface(withName:)
Returns the Wi-Fi interface with the given name.
Declaration
func interface(withName interfaceName: String?) -> CWInterface?Parameters
- interfaceName:
The name of an available Wi-Fi interface. Use the Interfacenames() Swift.type.method class method to obtain a list of valid interface names.
Return Value
The CWInterface object bound to the given interface name, or the default interface if no name is specified.