---
title: invalidate()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsxpclistener/invalidate()
---

# invalidate()

Invalidates the listener.

## Declaration

```swift
func invalidate()
```

## Discussion

Discussion After calling this method, no more connections are created. Once a listener is invalidated it may not be resumed or suspended.

## See Also

### Managing connection state

- [activate()](foundation/nsxpclistener/activate().md)
- [resume()](foundation/nsxpclistener/resume().md)
- [suspend()](foundation/nsxpclistener/suspend().md)
