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

# CPMessageComposeBarButton

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

```
class CPMessageComposeBarButton
```

## Overview> Note:
> This button type does not use a handler. Instead, tapping this button activates Siri and initiates the compose message flow.

## Topics

### Creating a Message Compose Bar Button

[`init()`](/documentation/CarPlay/CPMessageComposeBarButton/init())

Creates a message compose button with a system-provided image.

[`init(image: UIImage)`](/documentation/CarPlay/CPMessageComposeBarButton/init(image:))

Creates a message compose button that displays a custom image.

[`+ (instancetype) new;`](/documentation/CarPlay/CPMessageComposeBarButton/new)

Creates a message compose button with a system-provided image.

## Relationships

### Conforms To

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

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

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

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

### Inherits From

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

---

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)