---
title: DDDeviceEvent
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Class
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: devicediscoveryextension/dddeviceevent
---

# DDDeviceEvent

An object that provides a device or communicates its change in status.

## Declaration

```swift
class DDDeviceEvent
```

## Overview

Overview The extension creates and configures an instance of this class to represent a moment of interest in the device discovery life cycle. The event’s eventType (DDDeviceEvent.EventType) describes a particular status. For example, when the extension discovers a device of interest, it instantiates an instance of this class with the type DDDeviceEvent.EventType.deviceFound. var session: DDDiscoverySession? ... var deviceEvent = DDDeviceEvent(eventType: .deviceFound, device: ddDevice) Then, the extension provides the discovered device to the system using report(_:) for eventual display in the route picker view (AVRoutePickerView). session?.report(deviceEvent)

## Topics

### Creating a device event

- [init(eventType:device:)](devicediscoveryextension/dddeviceevent/init(eventtype:device:).md)

### Configuring a device event

- [eventType](devicediscoveryextension/dddeviceevent/eventtype-swift.property.md)
- [DDDeviceEvent.EventType](devicediscoveryextension/dddeviceevent/eventtype-swift.enum.md)
- [device](devicediscoveryextension/dddeviceevent/device.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Life cycle

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