---
title: CLBeaconIdentityConstraint
framework: corelocation
role: symbol
role_heading: Class
path: corelocation/clbeaconidentityconstraint
---

# CLBeaconIdentityConstraint

Identity characteristics that can match one or more beacons.

## Declaration

```swift
class CLBeaconIdentityConstraint
```

## Overview

Overview A constraint specifies beacon identity characteristics. Use constraints to check for matching beacons by comparing the beacon’s identity characteristics (uuid, major, and minor) to those in the constraint. Constraints always specify a UUID value, but the major and minor values are optional. A beacon satisfies the constraint if all three identity characteristics of the beacon match the same characteristic of the constraint. Major and minor characteristics are wildcards if they have no value. A major or minor wildcard value matches any value in the beacon’s corresponding characteristic.

## Topics

### Getting the beacon identity

- [major](corelocation/clbeaconidentityconstraint/major.md)
- [minor](corelocation/clbeaconidentityconstraint/minor.md)

## Relationships

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Classes

- [CLBeaconRegion](corelocation/clbeaconregion.md)
- [CLCircularRegion](corelocation/clcircularregion.md)
