<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryExtension",
  "identifier" : "/documentation/DeviceDiscoveryExtension/DDDeviceState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "c:@E@DDDeviceState"
  },
  "title" : "DDDeviceState"
}
-->

# DDDeviceState

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

```
enum DDDeviceState
```

## Overview

The device ([`DDDevice`](/documentation/DeviceDiscoveryExtension/DDDevice)) [`state`](/documentation/DeviceDiscoveryExtension/DDDevice/state) property is of this type.

## Topics

### Communicating a device’s status

[`case invalid`](/documentation/DeviceDiscoveryExtension/DDDeviceState/invalid)

A state that indicates the device is invalid or that the user disapproves of the device.

[`case activating`](/documentation/DeviceDiscoveryExtension/DDDeviceState/activating)

A state that indicates when the user selects the device in the picker UI.

[`case activated`](/documentation/DeviceDiscoveryExtension/DDDeviceState/activated)

A state that indicates when the user authorizes the device and the app connects to the device.

[`case authorized`](/documentation/DeviceDiscoveryExtension/DDDeviceState/authorized)

A state that indicates when the user authorizes the device.

[`case invalidating`](/documentation/DeviceDiscoveryExtension/DDDeviceState/invalidating)

A state that indicates that the device is soon to be invalid.

### Initializers

[`init?(rawValue: Int)`](/documentation/DeviceDiscoveryExtension/DDDeviceState/init(rawValue:))

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)