iOS Developer Library

Developer

MediaPlayer Framework Reference MPRatingCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPRatingCommandEvent

Inheritance


Conforms To


Import Statement


Swift

import MediaPlayer

Objective-C

@import MediaPlayer;

Availability


Available in iOS 7.1 and later.

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

  • 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

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later.