<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPListTemplateDetailsHeader/init(thumbnail:title:subtitle:bodyVariants:actionButtons:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPListTemplateDetailsHeader(im)initWithThumbnail:title:subtitle:bodyVariants:actionButtons:"
  },
  "title" : "init(thumbnail:title:subtitle:bodyVariants:actionButtons:)"
}
-->

# init(thumbnail:title:subtitle:bodyVariants:actionButtons:)

Creates a new details header with the specified content and action buttons.

```
init(thumbnail: CPThumbnailImage, title: String?, subtitle: String?, bodyVariants: [NSAttributedString], actionButtons: [CPButton])
```

## Parameters

`thumbnail`

The thumbnail image to display in the header. This image may include
overlays, progress indicators, or other visual enhancements.

`title`

The primary title text to display. Pass nil to hide the title.

`subtitle`

The secondary subtitle text to display below the title. Pass nil to hide the subtitle.

`bodyVariants`

The multiline metadata text to display below the subtitle. Pass nil to hide the metadata.

## Return Value

A newly initialized CPListTemplateDetailsHeader instance.

## Discussion\discussion The thumbnail parameter is required and should not be nil. The title and subtitle
are optional but at least one should be provided for meaningful content display.
Action buttons will be displayed in the order provided in the array.

---

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)