---
title: "DDDeviceCategoryToString(_:)"
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Function
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: "devicediscoveryextension/dddevicecategorytostring(_:)"
---

# DDDeviceCategoryToString(_:)

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

## Declaration

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

## Parameters

- `inValue`: A category identifier to convert to text.

## Return Value

Return Value A textual value for the specified category.

## Discussion

Discussion Your extension can use this function for logging.

## See Also

### Device information

- [DDDevice](devicediscoveryextension/dddevice.md)
- [DDDevice.Category](devicediscoveryextension/dddevice/category-swift.enum.md)
- [DDDeviceState](devicediscoveryextension/dddevicestate.md)
- [DDDeviceStateToString(_:)](devicediscoveryextension/dddevicestatetostring(_:).md)
- [DDDevice.Protocol](devicediscoveryextension/dddevice/protocol-swift.enum.md)
- [DDDeviceProtocolToString(_:)](devicediscoveryextension/dddeviceprotocoltostring(_:).md)
- [DDDeviceProtocolString](devicediscoveryextension/dddeviceprotocolstring.md)
- [DDDeviceMediaPlaybackStateToString(_:)](devicediscoveryextension/dddevicemediaplaybackstatetostring(_:).md)
