<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotEvaluationProvider/handleCommand(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension27NEHotspotEvaluationProviderP13handleCommandySo0C14HelperResponseCSo0chG0CYaF"
  },
  "title" : "handleCommand(_:)"
}
-->

# handleCommand(_:)

Handles a given hotspot command, in response to a request from the framework.

```
func handleCommand(_ command: NEHotspotHelperCommand) async -> NEHotspotHelperResponse
```

## Return Value

An [`NEHotspotHelperResponse`](/documentation/NetworkExtension/NEHotspotHelperResponse) with the result of the call.

## Discussion

In your implementation, handle the specified command and return an appropriate [`NEHotspotHelperResponse`](/documentation/NetworkExtension/NEHotspotHelperResponse).
The framework is responsible for delivering this response to the system; don’t invoke the [`deliver()`](/documentation/NetworkExtension/NEHotspotHelperResponse/deliver()) method of [`NEHotspotHelperResponse`](/documentation/NetworkExtension/NEHotspotHelperResponse) manually.

---

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)