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

# createXPCRepresentation()

Creates an encoded representation of the media environment for transmission through an XPC connection.

## Declaration

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