---
title: identifier
framework: DeviceDiscoveryExtension
role: symbol
role_heading: Instance Property
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, visionOS 1.0+]
path: devicediscoveryextension/dddevice/identifier
---

# identifier

A unique identifier for the device.

## Declaration

```swift
var identifier: String { get set }
```

## Discussion

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

## See Also

### Identifying the device

- [displayName](devicediscoveryextension/dddevice/displayname.md)
- [category](devicediscoveryextension/dddevice/category-swift.property.md)
- [DDDevice.Category](devicediscoveryextension/dddevice/category-swift.enum.md)
