---
title: "accept(connection:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/neappextensionconfiguration/accept(connection:)"
---

# accept(connection:)

Accepts incoming XPC connections from the host process.

## Declaration

```swift
nonisolated func accept(connection: NSXPCConnection) -> Bool
```

## Parameters

- `connection`: The incoming XPC connection.

## Discussion

Discussion The framework calls this method. You don’t need to call it in your app extension.
