[AVKit] Adopt XAMCORE_4_0 changes in .NET. (#13933)

This commit is contained in:
Rolf Bjarne Kvinge 2022-01-28 18:10:19 +01:00 коммит произвёл GitHub
Родитель 54f6712c15
Коммит e64a0b489a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 6 добавлений и 10 удалений

Просмотреть файл

@ -18,13 +18,13 @@ namespace AVKit {
}
#endif
#if !MONOMAC || !XAMCORE_4_0
#if NET
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("tvos13.0")]
#else
// The version of the AVError.h header file in the tvOS SDK is much newer than in the iOS SDKs,
// (copyright 2016 vs 2019), so this is reflecting the tvOS SDK.
[iOS (9,0)]
[TV (13,0)]
#if NET
[NoMac]
[NoWatch]
#endif
[Native]
[ErrorDomain ("AVKitErrorDomain")]
@ -36,7 +36,6 @@ namespace AVKit {
ContentDisallowedByPasscode = -1101,
ContentDisallowedByProfile = -1102,
}
#endif
#if NET
[SupportedOSPlatform ("ios13.0")]

Просмотреть файл

@ -46,7 +46,7 @@ namespace AVKit {
[Mac (10,15)]
[BaseType (typeof(NSObject))]
[DisableDefaultCtor]
#if XAMCORE_4_0
#if NET
[Sealed] // Apple docs: Do not subclass AVPictureInPictureController. Overriding this classs methods is unsupported and results in undefined behavior.
#endif
interface AVPictureInPictureController

Просмотреть файл

@ -1,3 +0,0 @@
## Extra API fixed in XAMCORE_4_0
!unknown-field! AVKitErrorDomain bound
!unknown-native-enum! AVKitError bound