---
title: INCar.HeadUnit
framework: intents
role: symbol
role_heading: Class
path: intents/incar/headunit-swift.class
---

# INCar.HeadUnit

An object that contains the Bluetooth and iAP2 identifiers of the vehicle’s physical head unit.

## Declaration

```swift
class HeadUnit
```

## Overview

Overview When the system connects to a vehicle’s physical head unit through CarPlay, it uses the head unit’s Bluetooth identifier to find the corresponding vehicle in the user’s My Vehicles collection by matching on the bluetoothIdentifier property of this object. You create instances of this class when handling INListCarsIntent requests. For more information on handling the intent, see INListCarsIntentHandling.

## Topics

### Creating a Head Unit

- [init(bluetoothIdentifier:iAP2Identifier:)](intents/incar/headunit-swift.class/init(bluetoothidentifier:iap2identifier:).md)

### Getting the Head Unit’s Attributes

- [bluetoothIdentifier](intents/incar/headunit-swift.class/bluetoothidentifier.md)
- [iAP2Identifier](intents/incar/headunit-swift.class/iap2identifier.md)

### Initializers

- [init(coder:)](intents/incar/headunit-swift.class/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### 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)

## See Also

### Getting the Car’s Head Unit

- [headUnit](intents/incar/headunit-swift.property.md)
