---
title: NSXPCListenerDelegate
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/nsxpclistenerdelegate
---

# NSXPCListenerDelegate

The protocol that delegates to the XPC listener use to accept or reject new connections.

## Declaration

```swift
protocol NSXPCListenerDelegate : NSObjectProtocol
```

## Topics

### Instance Methods

- [listener(_:shouldAcceptNewConnection:)](foundation/nsxpclistenerdelegate/listener(_:shouldacceptnewconnection:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### XPC Services

- [NSXPCListener](foundation/nsxpclistener.md)
- [NSXPCListenerEndpoint](foundation/nsxpclistenerendpoint.md)
