---
title: "startServicePrincipal(with:)"
framework: Professional Video Applications
role: symbol
role_heading: Type Method
platforms: [fxplug 4.1+]
path: "professional_video_applications/fxprincipal/startserviceprincipal(with:)"
---

# startServicePrincipal(with:)

Start your XPC service listening for connections from the host application.

## Declaration

```swift
class func startServicePrincipal(with delegate: (any FxPrincipalDelegate)!)
```

## Parameters

- `delegate`: An object that implements the doc://com.apple.professionalvideoapplications/documentation/professional_video_applications/FxPrincipalDelegate or nil.

## Discussion

Discussion Once a connection is established, your delegate will be informed of the host application’s ID and version.

## See Also

### Type Methods

- [embeddedPrincipal()](professional_video_applications/fxprincipal/embeddedprincipal().md)
- [startServicePrincipal()](professional_video_applications/fxprincipal/startserviceprincipal().md)
