The command object for rating a media item.
SDKs
- iOS 7.1+
- macOS 10.12.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 5.0+
Framework
- Media Player
Declaration
@property(nonatomic, readonly) MPRating Command *ratingCommand;
Discussion
Use the object in this property to register your app’s handler for rating the current track. In your handler, apply the specified rating to the track. You can disable the command if your app does not support it.