---
title: CPContactMessageButton
framework: carplay
role: symbol
role_heading: Class
path: carplay/cpcontactmessagebutton
---

# CPContactMessageButton

A button that activates Siri and initiates the compose message flow.

## Declaration

```swift
class CPContactMessageButton
```

## Overview

Overview important: This subclass of CPButton doesn’t use a handler. Instead, tapping this button activates Siri and launches the compose message flow using the contact information in the phoneOrEmail property.

## Topics

### Creating a Contact Message Button

- [init(phoneOrEmail:)](carplay/cpcontactmessagebutton/init(phoneoremail:).md)

### Getting the Contact Information

- [phoneOrEmail](carplay/cpcontactmessagebutton/phoneoremail.md)

## Relationships

### Inherits From

- [CPButton](carplay/cpbutton.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Managing Interactions with the Contact

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