<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPVoiceControlState/maximumActionButtonCount",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPVoiceControlState(cpy)maximumActionButtonCount"
  },
  "title" : "maximumActionButtonCount"
}
-->

# maximumActionButtonCount

The maximum number of action buttons that can be displayed in the CPVoiceControlTemplate.

```
class var maximumActionButtonCount: Int { get }
```

## Return Value

The maximum number of action buttons supported by this template.

## Discussion

This class property defines the upper limit for action buttons to ensure
proper layout and usability within the CarPlay interface constraints.
Any buttons beyond this limit in the actionButtons array will be ignored.

---

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)