The command object for indicating that a user likes what is currently playing.
- iOS 7.1+
- macOS 10.12.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 5.0+
- Media Player
Use the object in this property to register your app’s handler for liking an item. Use your handler to register the user’s preference for a track, artist, or whatever is appropriate for your app. You can disable the command if your app does not support it.
In addition to registering a handler, you can use the command object to provide a localized string to communicate what is being liked to the user.