---
title: state
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Instance Property
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: devicediscoveryextension/dddevice/state
---

# state

A state that represents the level of user interaction with the device.

## Declaration

```swift
var state: DDDeviceState { get set }
```

## See Also

### Setting the device state

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