<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEHotspotHelperCommand",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEHotspotHelperCommand"
  },
  "title" : "NEHotspotHelperCommand"
}
-->

# NEHotspotHelperCommand

A command for the hotspot helper to handle.

```
class NEHotspotHelperCommand
```

## Overview

NEHotspostHelperCommand objects are passed to the the Hotspot Helper app’s command handler block. The Hotspot Helper app processes the command, instantiates an [`NEHotspotHelperResponse`](/documentation/NetworkExtension/NEHotspotHelperResponse) object, sets the annotated `network` or `networkList` (`Evaluate` or `FilterScanList` commands only), and then delivers the response to the system.

## Topics

### Command information

[`commandType`](/documentation/NetworkExtension/NEHotspotHelperCommand/commandType)

The type of the command

[`NEHotspotHelperCommandType`](/documentation/NetworkExtension/NEHotspotHelperCommandType)

An enumeration of hotspot command types.

[`network`](/documentation/NetworkExtension/NEHotspotHelperCommand/network)

The network associated with the command.

[`networkList`](/documentation/NetworkExtension/NEHotspotHelperCommand/networkList)

The list of networks associated with the command.

### Networking on the hotspot network

  <doc://com.apple.documentation/documentation/Foundation/NSMutableURLRequest/bind(to:)>

[`-  createTCPConnection:`](/documentation/NetworkExtension/NEHotspotHelperCommand/createTCPConnection(_:))

Create a new TCP connection over the network associated with the command.

[`-  createUDPSession:`](/documentation/NetworkExtension/NEHotspotHelperCommand/createUDPSession(_:))

Creates a new UDP session over the network associated with the command.

### Response creation

[`-  createResponse:`](/documentation/NetworkExtension/NEHotspotHelperCommand/createResponse(_:))

Create a response to the command.

[`NEHotspotHelperResult`](/documentation/NetworkExtension/NEHotspotHelperResult)

The result of handling a hotspot command.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)