简体   繁体   中英

How to get/set 'loved' state in MPMediaItem?

How to get or set 'loved' state in MPMediaItem? I did a lot of searching, but I could not find it.

I tried the following but nothing works:

item["loved"]
item["disliked"]

ref) https://forums.developer.apple.com/thread/18829

In Cesium app, I can get/set 'loved' state.

That's not made available to us. These are the properties made known in Apple's documentation. Anything outside of the static keys defined in that article shouldn't be used in a production app. They may have side-effects, change and not work in future versions, or access private APIs that will cause you to fail your review.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM