<!--
{
  "availability" : [
    "iOS: 9.0.0 - 18.0.0",
    "iPadOS: 9.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.11.0 - 15.0.0",
    "tvOS: 17.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NWBonjourServiceEndpoint/init(name:type:domain:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NWBonjourServiceEndpoint(cm)endpointWithName:type:domain:"
  },
  "title" : "init(name:type:domain:)"
}
-->

# init(name:type:domain:)

Create an endpoint with a Bonjour service name, type, and domain. All fields must be specified.

```
convenience init(name: String, type: String, domain: String)
```

## Parameters

`name`

The Bonjour service name.

`type`

The Bonjour service type.

`domain`

The Bonjour service domain.

## Return Value

The new [`NWBonjourServiceEndpoint`](/documentation/NetworkExtension/NWBonjourServiceEndpoint) object.

---

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)