---
title: createXPCRepresentation()
framework: accessoryaccess
role: symbol
role_heading: Instance Method
path: accessoryaccess/aausbaccessory/createxpcrepresentation()
---

# createXPCRepresentation()

Creates an encoded representation of the USB accessory.

## Declaration

```swift
func createXPCRepresentation() -> xpc_object_t
```

## Discussion

Discussion A USB accessory can be encoded to xpc_object_t, and passed to an XPC service over an XPC connection.
