iOS Developer Library

Developer

Media Player Framework Reference MPRatingCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPRatingCommandEvent

The MPRatingCommandEvent class provides the rating for an item requested by an external media player.

  • The rating for the command event. (read-only)

    Declaration

    Swift

    var rating: Float { get }

    Objective-C

    @property(nonatomic, readonly) float rating

    Discussion

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

    Availability

    Available in iOS 7.1 and later.