diff --git a/src/tvservices.cs b/src/tvservices.cs index c333c6503c..8e76009407 100644 --- a/src/tvservices.cs +++ b/src/tvservices.cs @@ -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 currentSettings, TVAppProfileDescriptor[] availableProfiles, Action> completion); + [Deprecated (PlatformName.TvOS, 16, 0, message: "Use runs-as-current-user entitlement instead.")] [Async] [Export ("shouldStorePreferenceForCurrentUserToProfile:completion:")] void ShouldStorePreferenceForCurrentUser (TVAppProfileDescriptor profile, Action completion); @@ -324,6 +329,10 @@ namespace TVServices { [Notification] [Field ("TVUserManagerCurrentUserIdentifierDidChangeNotification")] NSString CurrentUserIdentifierDidChangeNotification { get; } + + [TV (16, 0)] + [Export ("shouldStorePreferencesForCurrentUser")] + bool ShouldStorePreferencesForCurrentUser { get; } } [TV (13,0)] diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.todo deleted file mode 100644 index 99957c0723..0000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-TVServices.todo +++ /dev/null @@ -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 diff --git a/tests/xtro-sharpie/tvOS-TVServices.todo b/tests/xtro-sharpie/tvOS-TVServices.todo deleted file mode 100644 index 99957c0723..0000000000 --- a/tests/xtro-sharpie/tvOS-TVServices.todo +++ /dev/null @@ -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