---
title: "init(eventType:device:)"
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Initializer
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: "devicediscoveryextension/dddeviceevent/init(eventtype:device:)"
---

# init(eventType:device:)

Creates an event object that conveys status for a discovered device of interest.

## Declaration

```swift
init(eventType type: DDDeviceEvent.EventType, device: DDDevice)
```

## Parameters

- `type`: The option that represents the device’s status in the device discovery life cycle.
- `device`: The discovered device of interest.
