---
title: "init(text:detailText:image:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cplistitem/init(text:detailtext:image:)"
---

# init(text:detailText:image:)

Creates a list item with primary text, secondary text, and an image.

## Declaration

```swift
init(text: String?, detailText: String?, image: UIImage?)
```

## Parameters

- `text`: The primary text to show in the list item cell.
- `detailText`: Additional text to display below the primary text in the list item cell.
- `image`: The image to display on the leading edge of the list item cell. If the image is larger than CPMaximumListItemImageSize, the list item scales down the image to maximum size. If you provide an animated image, the list item uses the first image in the animation sequence.

## Return Value

Return Value A newly initialized list item.

## See Also

### Creating a List Item

- [init(text:detailText:)](carplay/cplistitem/init(text:detailtext:).md)
- [init(text:detailText:image:accessoryImage:accessoryType:)](carplay/cplistitem/init(text:detailtext:image:accessoryimage:accessorytype:).md)
