---
title: txtRecord
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Instance Property
platforms: [iOS 16.0+, iPadOS 16.0+, macOS 13.0+]
path: devicediscoveryextension/dddevice/txtrecord
---

# txtRecord

A dictionary of metadata for the device that the extension communicates with over the local network.

## Declaration

```swift
var txtRecord: NWTXTRecord? { get set }
```

## Discussion

Discussion Particularly, this dictionary provides the human-readable device name with its “NAME” key.

## See Also

### Setting the device state

- [state](devicediscoveryextension/dddevice/state.md)
- [url](devicediscoveryextension/dddevice/url.md)
- [supportsGrouping](devicediscoveryextension/dddevice/supportsgrouping.md)
