---
title: "handleCommand(_:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nehotspotevaluationprovider/handlecommand(_:)"
---

# handleCommand(_:)

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

## Declaration

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

## Return Value

Return Value An NEHotspotHelperResponse with the result of the call.

## Discussion

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

## See Also

### Sending commands to the provider

- [NEHotspotHelperCommand](networkextension/nehotspothelpercommand.md)
