---
title: createXPCRepresentation()
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: browserenginekit/layerhierarchyhandle/createxpcrepresentation()
---

# createXPCRepresentation()

Creates an object representing this handle that you send to another process in an XPC message.

## Declaration

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

## See Also

### Sharing a layer hierarchy handle using XPC

- [init(xpcRepresentation:)](browserenginekit/layerhierarchyhandle/init(xpcrepresentation:).md)
