---
title: CPContact
framework: carplay
role: symbol
role_heading: Class
path: carplay/cpcontact
---

# CPContact

A data object that contains information about a contact.

## Declaration

```swift
class CPContact
```

## Overview

Overview CPContact is an object that represents information about a person or a business, and can include a set of contextually relevant actions that a user can perform when CarPlay displays the contact, such as getting directions to its location. You display a contact using CPContactTemplate. The template manages the appearance of the contact, and can display up to four action buttons. After displaying it, you can update the buttons for the template by assigning a new array to the contact’s actions property. The framework provides specialized buttons for common actions, such as CPContactCallButton or CPContactMessageButton.

## Topics

### Creating a Contact

- [init(name:image:)](carplay/cpcontact/init(name:image:).md)

### Configuring the Contact’s Attributes

- [image](carplay/cpcontact/image.md)
- [name](carplay/cpcontact/name.md)
- [subtitle](carplay/cpcontact/subtitle.md)
- [informativeText](carplay/cpcontact/informativetext.md)

### Managing Interactions with the Contact

- [actions](carplay/cpcontact/actions.md)
- [CPContactCallButton](carplay/cpcontactcallbutton.md)
- [CPContactDirectionsButton](carplay/cpcontactdirectionsbutton.md)
- [CPContactMessageButton](carplay/cpcontactmessagebutton.md)

### Initializers

- [init(coder:)](carplay/cpcontact/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)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Configuring the Contact

- [contact](carplay/cpcontacttemplate/contact.md)
