---
title: rating
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpratingcommandevent/rating
---

# rating

The rating for the command event.

## Declaration

```swift
var rating: Float { get }
```

## Discussion

Discussion The rating property must be between the minimum and maximum ratings defined by the maximumRating and minimumRating properties.
