---
title: "init(displayName:category:protocolType:identifier:)"
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Initializer
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: "devicediscoveryextension/dddevice/init(displayname:category:protocoltype:identifier:)"
---

# init(displayName:category:protocolType:identifier:)

Creates an object that describes a discovered device.

## Declaration

```swift
init(displayName: String, category: DDDevice.Category, protocolType: UTType, identifier: String)
```

## Parameters

- `displayName`: A name for the device to display to the user.
- `category`: An option that determines the icon that the picker UI displays for the device.
- `protocolType`: A custom universal type that describes the device’s manner of communication with the extension.
- `identifier`: A unique identifier for the device.

## Discussion

Discussion As an example identifier for Bluetooth devices, your extension can use the device’s local name (see CBAdvertisementDataLocalNameKey).
