[AVFoundation] Update up to Xcode 9.2 Beta 2 (#2978)
* [AVFoundation] Update up to Xcode 9.2 Beta 2 * implement feedback
This commit is contained in:
Родитель
4c00387fdc
Коммит
4ab10b0c3a
|
@ -92,6 +92,25 @@ namespace XamCore.AVFoundation {
|
|||
}
|
||||
}
|
||||
|
||||
#if !MONOMAC
|
||||
partial class AVSampleBufferAudioRenderer
|
||||
{
|
||||
[Obsolete ("This API is not available on this platform")]
|
||||
public virtual string AudioOutputDeviceUniqueId { get; set; }
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !IOS
|
||||
partial class AVSampleBufferAudioRenderer
|
||||
{
|
||||
[Obsolete ("This API is not available on this platform")]
|
||||
public virtual void RespondByRequestingPersistableContentKeyRequest ()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if TVOS
|
||||
// tvOS removed some types - we need to keep stubs of them for binary compatibility
|
||||
[Obsolete ("Removed in tvOS 10.")]
|
||||
|
|
|
@ -243,6 +243,20 @@ namespace XamCore.AVFoundation {
|
|||
UnsupportedOutputSettings = -11861,
|
||||
[NoWatch, iOS (10,0), TV (10,0), Mac (10,12)]
|
||||
OperationNotAllowed = -11862,
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (10,13)]
|
||||
ContentIsUnavailable = -11863,
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (10,13)]
|
||||
FormatUnsupported = -11864,
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (10,13)]
|
||||
MalformedDepth = -11865,
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (10,13)]
|
||||
ContentNotUpdated = -11866,
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (10,13)]
|
||||
NoLongerPlayable = -11867,
|
||||
[NoWatch, iOS (11,0), TV (11,0), Mac (10,13)]
|
||||
NoCompatibleAlternatesForExternalDisplay = -11868,
|
||||
[NoWatch, iOS (11,2), TV (11,2), Mac (10,13,2)]
|
||||
NoSourceTrack = -11869,
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
|
@ -990,4 +1004,13 @@ namespace XamCore.AVFoundation {
|
|||
PeakPower = (1 << 1),
|
||||
DepthModuleTemperature = (1 << 2)
|
||||
}
|
||||
|
||||
[TV (11,2), NoWatch, NoMac, iOS (11,2)]
|
||||
[Native]
|
||||
[Flags]
|
||||
public enum AVPlayerHdrMode : nint {
|
||||
Hlg = 0x1,
|
||||
Hdr10 = 0x2,
|
||||
DolbyVision = 0x4,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2785,6 +2785,12 @@ namespace XamCore.AVFoundation {
|
|||
NSNumber[] AvailableEncodeChannelLayoutTags { get; }
|
||||
}
|
||||
|
||||
[TV (11,2), NoWatch, NoMac, NoiOS]
|
||||
[Abstract]
|
||||
[BaseType (typeof (NSObject))]
|
||||
interface AVDisplayCriteria : NSCopying {
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
[Since (4,0)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
|
@ -2807,6 +2813,10 @@ namespace XamCore.AVFoundation {
|
|||
[Availability (Introduced = Platform.iOS_4_0 | Platform.Mac_10_7, Deprecated = Platform.iOS_5_0 | Platform.Mac_10_8, Message = "Use 'NaturalSize/PreferredTransform' as appropriate on the video track instead.")]
|
||||
CGSize NaturalSize { get; }
|
||||
|
||||
[TV (11,2), NoWatch, NoMac, NoiOS]
|
||||
[Export ("preferredDisplayCriteria")]
|
||||
AVDisplayCriteria PreferredDisplayCriteria { get; }
|
||||
|
||||
[Export ("providesPreciseDurationAndTiming")]
|
||||
bool ProvidesPreciseDurationAndTiming { get; }
|
||||
|
||||
|
@ -3233,7 +3243,7 @@ namespace XamCore.AVFoundation {
|
|||
[NullAllowed, Export ("error")]
|
||||
NSError Error { get; }
|
||||
|
||||
[NullAllowed, Export ("audioOutputDeviceUniqueID")]
|
||||
[NullAllowed, Export ("audioOutputDeviceUniqueID"), NoWatch, NoTV, NoiOS]
|
||||
string AudioOutputDeviceUniqueId { get; set; }
|
||||
|
||||
[Export ("audioTimePitchAlgorithm")]
|
||||
|
@ -3837,6 +3847,10 @@ namespace XamCore.AVFoundation {
|
|||
[iOS (8,0), Mac (10, 10)]
|
||||
[Export ("renewalDate", ArgumentSemantic.Copy), NullAllowed]
|
||||
NSDate RenewalDate { get; set; }
|
||||
|
||||
[Watch (4,2), TV (11,2), Mac (10,13,2), iOS (11,2)]
|
||||
[NullAllowed, Export ("allowedContentTypes")]
|
||||
string[] AllowedContentTypes { get; }
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
|
@ -10290,6 +10304,18 @@ namespace XamCore.AVFoundation {
|
|||
[iOS (10, 0), TV (10,0), Mac (10,12)]
|
||||
[Field ("AVPlayerWaitingWithNoItemToPlayReason")]
|
||||
NSString WaitingWithNoItemToPlayReason { get; }
|
||||
|
||||
// From AVPlayer (AVPlayerPlaybackCapabilities) Category
|
||||
|
||||
[TV (11,2), NoWatch, NoMac, iOS (11,2)]
|
||||
[Static]
|
||||
[Export ("availableHDRModes")]
|
||||
AVPlayerHdrMode AvailableHdrModes { get; }
|
||||
|
||||
[TV (11, 2), NoWatch, NoMac, iOS (11, 2)]
|
||||
[Field ("AVPlayerAvailableHDRModesDidChangeNotification")]
|
||||
[Notification]
|
||||
NSString AvailableHdrModesDidChangeNotification { get; }
|
||||
}
|
||||
|
||||
[NoWatch]
|
||||
|
@ -12488,8 +12514,13 @@ namespace XamCore.AVFoundation {
|
|||
[Export ("processContentKeyResponseError:")]
|
||||
void Process (NSError error);
|
||||
|
||||
[Export ("respondByRequestingPersistableContentKeyRequest")]
|
||||
[Deprecated (PlatformName.iOS, 11, 2, message: "Use the 'NSError' overload instead.")]
|
||||
[Export ("respondByRequestingPersistableContentKeyRequest"), NoWatch, NoTV, NoMac]
|
||||
void RespondByRequestingPersistableContentKeyRequest ();
|
||||
|
||||
[NoWatch, NoTV, NoMac, iOS (11,2)]
|
||||
[Export ("respondByRequestingPersistableContentKeyRequestAndReturnError:")]
|
||||
bool RespondByRequestingPersistableContentKeyRequest ([NullAllowed] out NSError error);
|
||||
}
|
||||
|
||||
[Category]
|
||||
|
|
|
@ -215,6 +215,7 @@ namespace Introspection
|
|||
"Hfp",
|
||||
"Hipass",
|
||||
"Hls",
|
||||
"Hlg",
|
||||
"Hoa",
|
||||
"Hrtf", // acronym used in AUSpatializationAlgorithm
|
||||
"Hvxc", // MPEG4ObjectID
|
||||
|
|
|
@ -12,6 +12,7 @@ namespace Extrospection {
|
|||
|
||||
// the original name can be lost and, if not registered (e.g. enums), might not be available
|
||||
static Dictionary<string,string> map = new Dictionary<string, string> () {
|
||||
{ "AVPlayerHDRMode", "AVPlayerHdrMode" },
|
||||
{ "CFURLPathStyle", "CFUrlPathStyle" },
|
||||
{ "CIDataMatrixCodeECCVersion", "CIDataMatrixCodeEccVersion" },
|
||||
{ "CXPlayDTMFCallActionType", "CXPlayDtmfCallActionType" },
|
||||
|
|
Загрузка…
Ссылка в новой задаче