---
title: "bonjour(_:domain:includeTxtRecord:)"
framework: network
role: symbol
role_heading: Type Method
path: "network/browserprovider/bonjour(_:domain:includetxtrecord:)"
---

# bonjour(_:domain:includeTxtRecord:)

Create a Bonjour browser provider used to browse for Bonjour services.

## Declaration

```swift
static func bonjour(_ type: String, domain: String? = nil, includeTxtRecord: Bool = false) -> Bonjour
```

## Parameters

- `type`: The Bonjour type to browse for.
- `domain`: Optional Bonjour domain to browse in. If not specified, uses the Bonjour default browse domain, nil, which is recommended in most cases.
- `includeTxtRecord`: Boolean specifying whether to query for TXT records.
