---
title: "init(items:header:headerSubtitle:headerImage:headerButton:sectionIndexTitle:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cplistsection/init(items:header:headersubtitle:headerimage:headerbutton:sectionindextitle:)"
---

# init(items:header:headerSubtitle:headerImage:headerButton:sectionIndexTitle:)

Creates a section with list items, a header, a section index title, and section header details.

## Declaration

```swift
init(items: [any CPListTemplateItem], header: String, headerSubtitle: String?, headerImage: UIImage?, headerButton: CPButton?, sectionIndexTitle: String?)
```

## Parameters

- `items`: A list of items to include in the section.
- `header`: The section header text.
- `sectionIndexTitle`: A section index title. The system displays only the first character of the title, so choose a single-character section index title.

## Return Value

Return Value A newly initialized list section.

## See Also

### Creating a Section

- [CPListTemplateItem](carplay/cplisttemplateitem.md)
- [CPSelectableListItem](carplay/cpselectablelistitem.md)
- [CPListItem](carplay/cplistitem.md)
- [CPListImageRowItem](carplay/cplistimagerowitem.md)
- [CPMessageListItem](carplay/cpmessagelistitem.md)
