---
title: CPInformationRatingItem
framework: carplay
role: symbol
role_heading: Class
path: carplay/cpinformationratingitem
---

# CPInformationRatingItem

A data object that provides rated content for an information template.

## Declaration

```swift
class CPInformationRatingItem
```

## Overview

Overview CPInformationRatingItem provides the ability to display rated content in the rows of an information template. Depending on the template’s layout, the item’s attributes stack vertically or horizontally in the rows. The title property describes the content, and the detail property provides the content. Use the rating and maximumRating properties to display a rating for the content. For example, you could show a service rating when displaying information about a restaurant or café. The template manages the visual styling of the rating and maximum rating.

## Topics

### Creating a Rating Item

- [init(rating:maximumRating:title:detail:)](carplay/cpinformationratingitem/init(rating:maximumrating:title:detail:).md)

### Accessing the Item’s Attributes

- [rating](carplay/cpinformationratingitem/rating.md)
- [maximumRating](carplay/cpinformationratingitem/maximumrating.md)

## Relationships

### Inherits From

- [CPInformationItem](carplay/cpinformationitem.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Managing the Items

- [items](carplay/cpinformationtemplate/items.md)
- [CPInformationItem](carplay/cpinformationitem.md)
