[tvos][mediaplayer] Enable MPContentItem on tvOS
No news from Apple on the original rdar but the issue was fixed in Xcode 8 beta 6 (and likely earlier betas) > MP_EXTERN_CLASS_AVAILABLE(3_0) > @interface MPMediaItemArtwork : NSObject which makes it possible to enable the type (as it does nor depend on other, unavailable, types). references: * rdar://24982126 * https://trello.com/c/2gxuFbeS
This commit is contained in:
Родитель
7b92e3c468
Коммит
6b30fd2c9c
|
@ -1314,7 +1314,6 @@ namespace XamCore.MediaPlayer {
|
||||||
NSString PropertyIsLiveStream { get; }
|
NSString PropertyIsLiveStream { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[NoTV] // This type was made available in tvOS but MPMediaItemArtwork is still restricted radar://24982126 https://trello.com/c/2gxuFbeS
|
|
||||||
[Since (7,1)]
|
[Since (7,1)]
|
||||||
[BaseType (typeof (NSObject))]
|
[BaseType (typeof (NSObject))]
|
||||||
[DisableDefaultCtor] // crash if used
|
[DisableDefaultCtor] // crash if used
|
||||||
|
@ -1340,10 +1339,12 @@ namespace XamCore.MediaPlayer {
|
||||||
string Title { get; set; }
|
string Title { get; set; }
|
||||||
|
|
||||||
[iOS (10,0)]
|
[iOS (10,0)]
|
||||||
|
[TV (10,0)]
|
||||||
[Export ("streamingContent")]
|
[Export ("streamingContent")]
|
||||||
bool StreamingContent { [Bind ("isStreamingContent")] get; set; }
|
bool StreamingContent { [Bind ("isStreamingContent")] get; set; }
|
||||||
|
|
||||||
[iOS (10,0)]
|
[iOS (10,0)]
|
||||||
|
[TV (10,0)]
|
||||||
[Export ("explicitContent")]
|
[Export ("explicitContent")]
|
||||||
bool ExplicitContent { [Bind ("isExplicitContent")] get; set; }
|
bool ExplicitContent { [Bind ("isExplicitContent")] get; set; }
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче