---
title: NSXPCInterface
framework: foundation
role: symbol
role_heading: Class
path: foundation/nsxpcinterface
---

# NSXPCInterface

An interface that may be sent to an exported object or remote object proxy.

## Declaration

```swift
class NSXPCInterface
```

## Overview

Overview This object holds all information about the interface of an exported object or remote object proxy. It describes what messages are allowed, what kinds of objects are allowed as arguments, what the signature of any reply blocks are, and information about additional proxy objects.

## Topics

### Initializers

- [init(with:)](foundation/nsxpcinterface/init(with:).md)
- [init(withProtocol:)](foundation/nsxpcinterface/init(withprotocol:).md)

### Instance Properties

- [protocol](foundation/nsxpcinterface/protocol.md)

### Instance Methods

- [classes(for:argumentIndex:ofReply:)](foundation/nsxpcinterface/classes(for:argumentindex:ofreply:).md)
- [forSelector(_:argumentIndex:ofReply:)](foundation/nsxpcinterface/forselector(_:argumentindex:ofreply:).md)
- [setClasses(_:for:argumentIndex:ofReply:)](foundation/nsxpcinterface/setclasses(_:for:argumentindex:ofreply:).md)
- [setInterface(_:for:argumentIndex:ofReply:)](foundation/nsxpcinterface/setinterface(_:for:argumentindex:ofreply:).md)
- [setXPCType(_:for:argumentIndex:ofReply:)](foundation/nsxpcinterface/setxpctype(_:for:argumentindex:ofreply:).md)
- [xpcType(for:argumentIndex:ofReply:)](foundation/nsxpcinterface/xpctype(for:argumentindex:ofreply:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### XPC Client

- [NSXPCProxyCreating](foundation/nsxpcproxycreating.md)
- [NSXPCConnection](foundation/nsxpcconnection.md)
- [NSXPCCoder](foundation/nsxpccoder.md)
