Contents

CPListImageRowItem

A list template row that displays a series of images.

Declaration

@MainActor class CPListImageRowItem

Overview

Use CPListImageRowItem to display a series of images as a row in a list template. At runtime, use CPMaximumNumberOfGridImages to determine the maximum number of images that the row displays. CarPlay may display fewer images, depending on the width of the vehicle’s primary screen. Provide images that are display-ready, and include light and dark variants of each. See init(text:images:) for more information.

You assign a handler to the list item that CarPlay executes when the user selects the item. You can assign a second handler, listImageRowHandler, which CarPlay calls when the user selects an individual image.

CarPlay doesn’t support custom list item types. Instead, use the userInfo property to attach a value to the list item that provides additional context, such as specifying a model object that corresponds to the item.

Topics

Creating a List Image Row Item

Managing Content

Managing Selection

Managing Supplementary Information

Enabling Items

Initializers

Instance Properties

See Also

Creating a Section