<!--
{
  "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/DDDeviceEvent/init(eventType:device:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)DDDeviceEvent(im)initWithEventType:device:"
  },
  "title" : "init(eventType:device:)"
}
-->

# init(eventType:device:)

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

```
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.

---

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)