简体   繁体   English

如何在MPMediaItem中获取/设置“喜爱”状态?

[英]How to get/set 'loved' state in MPMediaItem?

How to get or set 'loved' state in MPMediaItem? 如何在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 参考) https://forums.developer.apple.com/thread/18829

In Cesium app, I can get/set 'loved' state. Cesium应用中,我可以获取/设置“喜爱”状态。

That's not made available to us. 这没有提供给我们。 These are the properties made known in Apple's documentation. 这些是 Apple文档中已知的属性 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. 它们可能会产生副作用,进行更改并且在以后的版本中不起作用,或者访问私有API可能会导致您无法通过审核。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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