iOS Developer Library

Developer

MediaPlayer 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.

Inheritance


Conforms To


Import Statement


import MediaPlayer @import MediaPlayer;

Availability


Available in iOS 7.1 and later.
  • rating rating Property

    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.

    Import Statement

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later.