[TVServices] Add support for Xcode 14 beta 1, 2 & 3 (#15553)

This commit is contained in:
Manuel de la Pena 2022-07-26 11:41:36 -04:00 коммит произвёл GitHub
Родитель 7a3729f94b
Коммит af04116098
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 9 добавлений и 14 удалений

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

@ -110,6 +110,7 @@ namespace TVServices {
NSString DidChangeNotification { get; }
}
[Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user entitlement instead.")]
[TV (13,0)]
[BaseType (typeof(NSObject))]
[DisableDefaultCtor] // Name property can't be null
@ -307,16 +308,20 @@ namespace TVServices {
[BaseType (typeof (NSObject))]
interface TVUserManager {
[Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user entitlement instead.")]
[NullAllowed, Export ("currentUserIdentifier")]
string CurrentUserIdentifier { get; }
[Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user entitlement instead.")]
[Export ("userIdentifiersForCurrentProfile", ArgumentSemantic.Copy)]
string[] UserIdentifiersForCurrentProfile { get; set; }
[Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user entitlement instead.")]
[Async]
[Export ("presentProfilePreferencePanelWithCurrentSettings:availableProfiles:completion:")]
void PresentProfilePreferencePanel (NSDictionary<NSString, TVAppProfileDescriptor> currentSettings, TVAppProfileDescriptor[] availableProfiles, Action<NSDictionary<NSString, TVAppProfileDescriptor>> completion);
[Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user entitlement instead.")]
[Async]
[Export ("shouldStorePreferenceForCurrentUserToProfile:completion:")]
void ShouldStorePreferenceForCurrentUser (TVAppProfileDescriptor profile, Action<bool> completion);
@ -324,6 +329,10 @@ namespace TVServices {
[Notification]
[Field ("TVUserManagerCurrentUserIdentifierDidChangeNotification")]
NSString CurrentUserIdentifierDidChangeNotification { get; }
[TV (16, 0)]
[Export ("shouldStorePreferencesForCurrentUser")]
bool ShouldStorePreferencesForCurrentUser { get; }
}
[TV (13,0)]

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

@ -1,7 +0,0 @@
!deprecated-attribute-missing! TVAppProfileDescriptor missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::currentUserIdentifier missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::presentProfilePreferencePanelWithCurrentSettings:availableProfiles:completion: missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::setUserIdentifiersForCurrentProfile: missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::shouldStorePreferenceForCurrentUserToProfile:completion: missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::userIdentifiersForCurrentProfile missing a [Deprecated] attribute
!missing-selector! TVUserManager::shouldStorePreferencesForCurrentUser not bound

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

@ -1,7 +0,0 @@
!deprecated-attribute-missing! TVAppProfileDescriptor missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::currentUserIdentifier missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::presentProfilePreferencePanelWithCurrentSettings:availableProfiles:completion: missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::setUserIdentifiersForCurrentProfile: missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::shouldStorePreferenceForCurrentUserToProfile:completion: missing a [Deprecated] attribute
!deprecated-attribute-missing! TVUserManager::userIdentifiersForCurrentProfile missing a [Deprecated] attribute
!missing-selector! TVUserManager::shouldStorePreferencesForCurrentUser not bound