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

# DDEventTypeToString(_:)

Returns human-readable text for the specified event identifier.

## Declaration

```swift
func DDEventTypeToString(_ inValue: DDDeviceEvent.EventType) -> String
```

## Parameters

- `inValue`: An event identifier to convert to text.

## Return Value

Return Value A textual value for the specified event type.

## Discussion

Discussion Your extension can use this function for logging.

## See Also

### Life cycle

- [DDDeviceEvent](devicediscoveryextension/dddeviceevent.md)
- [DDDeviceEvent.EventType](devicediscoveryextension/dddeviceevent/eventtype-swift.enum.md)
- [DDEventHandler](devicediscoveryextension/ddeventhandler.md)
