<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryExtension",
  "identifier" : "/documentation/DeviceDiscoveryExtension/DDDeviceCategoryToString(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "c:@F@DDDeviceCategoryToString"
  },
  "title" : "DDDeviceCategoryToString(_:)"
}
-->

# DDDeviceCategoryToString(_:)

Returns human-readable text for the specified identifier that describes a device’s category.

```
func DDDeviceCategoryToString(_ inValue: DDDevice.Category) -> String
```

## Parameters

`inValue`

A category identifier to convert to text.

## Return Value

A textual value for the specified category.

## Discussion

Your extension can use this function for logging.

---

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)