<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: 14.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/RenderingExtension",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "s:16BrowserEngineKit18RenderingExtensionP"
  },
  "title" : "RenderingExtension"
}
-->

# RenderingExtension

A protocol for an app extension that manages graphics rendering for your browser app.

```
protocol RenderingExtension : RestrictedSandboxAppliable, AppExtension
```

## Overview

When you add an object that conforms to this protocol in your extension’s Xcode target, annotate the conforming object with `@main` to indicate to the framework that this object is the entry point for your extension.

## Topics

### Handling incoming XPC connections

[`func handle(xpcConnection: xpc_connection_t)`](/documentation/BrowserEngineKit/RenderingExtension/handle(xpcConnection:))

Accepts or rejects an incoming XPC connection.

### Enabling features

[`func enableFeature(RenderingExtensionFeature)`](/documentation/BrowserEngineKit/RenderingExtension/enableFeature(_:))

Enables the specified feature.

## Relationships

### Inherits From

[`AppExtension`](/documentation/ExtensionFoundation/AppExtension)

[`RestrictedSandboxAppliable`](/documentation/BrowserEngineKit/RestrictedSandboxAppliable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)