<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPContactMessageButton",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPContactMessageButton"
  },
  "title" : "CPContactMessageButton"
}
-->

# CPContactMessageButton

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

```
class CPContactMessageButton
```

## Overview> Important:
> This subclass of ``doc://com.apple.carplay/documentation/CarPlay/CPButton`` doesn’t use a handler. Instead, tapping this button activates Siri and launches the compose message flow using the contact information in the ``doc://com.apple.carplay/documentation/CarPlay/CPContactMessageButton/phoneOrEmail`` property.

## Topics

### Creating a Contact Message Button

[`init(phoneOrEmail: String)`](/documentation/CarPlay/CPContactMessageButton/init(phoneOrEmail:))

Creates a contact message button with the provided contact information.

### Getting the Contact Information

[`var phoneOrEmail: String`](/documentation/CarPlay/CPContactMessageButton/phoneOrEmail)

The contact’s phone number or email address.

## Relationships

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`CPButton`](/documentation/CarPlay/CPButton)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)