---
title: makeListenerEndpoint()
framework: fileprovider
role: symbol
role_heading: Instance Method
path: fileprovider/nsfileproviderservicesource/makelistenerendpoint()
---

# makeListenerEndpoint()

Returns an endpoint object that lets the host app communicate with the File Provider extension.

## Declaration

```swift
func makeListenerEndpoint() throws -> NSXPCListenerEndpoint
```

## See Also

### Accessing the Service

- [serviceName](fileprovider/nsfileproviderservicesource/servicename.md)
- [isRestricted](fileprovider/nsfileproviderservicesource/isrestricted.md)
