<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWInterface/interfaceMode()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:objc(cs)CWInterface(im)interfaceMode"
  },
  "title" : "interfaceMode()"
}
-->

# interfaceMode()

The current mode for the interface.

```
func interfaceMode() -> CWInterfaceMode
```

## Discussion

Dynamically queries the interface for the current mode. Returns *kCWInterfaceModeNone* in the case of an error, or if the interface is not participating in a network.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)