<!--
{
  "availability" : [
    "FxPlug: 4.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxPrincipalDelegate/didEstablishConnection(withHost:version:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxPrincipalDelegate(im)didEstablishConnectionWithHost:version:"
  },
  "title" : "didEstablishConnection(withHost:version:)"
}
-->

# didEstablishConnection(withHost:version:)

Notifies your XPC service that a connection was established with the host.

```
optional func didEstablishConnection(withHost hostBundleIdentifier: String!, version hostVersionString: String!)
```

## Parameters

`hostBundleIdentifier`

The NSBundleIdentifier of the host application that launched this XPC service.

`hostVersionString`

The NSShortVersionString of the host application that launched this XPC service.

## Discussion

Your delegate can implement this protocol to be informed of which host application is calling your plug-in.

---

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)