[AuthenticationServices] Update bindings to Xcode 12 Beta 3 (#9231)

This commit is contained in:
Alex Soto 2020-07-30 13:39:29 -04:00 коммит произвёл GitHub
Родитель b3194f5d57
Коммит 87329ca967
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 37 добавлений и 34 удалений

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

@ -23,10 +23,10 @@ using UIWindow = Foundation.NSObject;
namespace AuthenticationServices { namespace AuthenticationServices {
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[Native] [Native]
[ErrorDomain ("ASCredentialIdentityStoreErrorDomain")] [ErrorDomain ("ASCredentialIdentityStoreErrorDomain")]
public enum ASCredentialIdentityStoreErrorCode : long { public enum ASCredentialIdentityStoreErrorCode : long {
@ -35,10 +35,10 @@ namespace AuthenticationServices {
StoreBusy = 2, StoreBusy = 2,
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[Native] [Native]
[ErrorDomain ("ASExtensionErrorDomain")] [ErrorDomain ("ASExtensionErrorDomain")]
public enum ASExtensionErrorCode : long { public enum ASExtensionErrorCode : long {
@ -50,15 +50,17 @@ namespace AuthenticationServices {
[Partial] [Partial]
interface ASExtensionErrorCodeExtensions { interface ASExtensionErrorCodeExtensions {
[NoWatch, NoTV, Mac (10, 16), iOS (14, 0)]
[Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoWatch, NoTV, Mac (11, 0), iOS (14, 0)]
[Field ("ASExtensionLocalizedFailureReasonErrorKey")] [Field ("ASExtensionLocalizedFailureReasonErrorKey")]
NSString LocalizedFailureReasonErrorKey { get; } NSString LocalizedFailureReasonErrorKey { get; }
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[Native] [Native]
public enum ASCredentialServiceIdentifierType : long { public enum ASCredentialServiceIdentifierType : long {
Domain, Domain,
@ -69,6 +71,7 @@ namespace AuthenticationServices {
[Watch (6,2)] [Watch (6,2)]
[Mac (10,15)] [Mac (10,15)]
[iOS (12,0)] [iOS (12,0)]
[Introduced (PlatformName.MacCatalyst, 13, 0)]
[Native] [Native]
[ErrorDomain ("ASWebAuthenticationSessionErrorDomain")] [ErrorDomain ("ASWebAuthenticationSessionErrorDomain")]
public enum ASWebAuthenticationSessionErrorCode : long { public enum ASWebAuthenticationSessionErrorCode : long {
@ -79,10 +82,10 @@ namespace AuthenticationServices {
delegate void ASCredentialIdentityStoreCompletionHandler (bool success, NSError error); delegate void ASCredentialIdentityStoreCompletionHandler (bool success, NSError error);
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASCredentialIdentityStore { interface ASCredentialIdentityStore {
@ -111,10 +114,10 @@ namespace AuthenticationServices {
void ReplaceCredentialIdentities (ASPasswordCredentialIdentity[] newCredentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion); void ReplaceCredentialIdentities (ASPasswordCredentialIdentity[] newCredentialIdentities, [NullAllowed] ASCredentialIdentityStoreCompletionHandler completion);
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASCredentialIdentityStoreState { interface ASCredentialIdentityStoreState {
@ -127,10 +130,10 @@ namespace AuthenticationServices {
delegate void ASCredentialProviderExtensionRequestCompletionHandler (bool expired); delegate void ASCredentialProviderExtensionRequestCompletionHandler (bool expired);
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[BaseType (typeof (NSExtensionContext))] [BaseType (typeof (NSExtensionContext))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASCredentialProviderExtensionContext { interface ASCredentialProviderExtensionContext {
@ -144,10 +147,10 @@ namespace AuthenticationServices {
void CancelRequest (NSError error); void CancelRequest (NSError error);
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASCredentialServiceIdentifier : NSCopying, NSSecureCoding { interface ASCredentialServiceIdentifier : NSCopying, NSSecureCoding {
@ -161,10 +164,10 @@ namespace AuthenticationServices {
ASCredentialServiceIdentifierType Type { get; } ASCredentialServiceIdentifierType Type { get; }
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASPasswordCredentialIdentity : NSCopying, NSSecureCoding { interface ASPasswordCredentialIdentity : NSCopying, NSSecureCoding {
@ -189,10 +192,10 @@ namespace AuthenticationServices {
nint Rank { get; set; } nint Rank { get; set; }
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoTV][NoWatch] [NoTV][NoWatch]
[iOS (12,0)] [iOS (12,0)]
[Mac (10,16)] [Mac (11,0)]
[BaseType (typeof (UIViewController))] [BaseType (typeof (UIViewController))]
interface ASCredentialProviderViewController { interface ASCredentialProviderViewController {
[Export ("extensionContext", ArgumentSemantic.Strong)] [Export ("extensionContext", ArgumentSemantic.Strong)]
@ -486,7 +489,7 @@ namespace AuthenticationServices {
[Protocol] [Protocol]
interface ASAuthorizationProvider { } interface ASAuthorizationProvider { }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoWatch, NoTV, Mac (10,15), iOS (13,0)] [NoWatch, NoTV, Mac (10,15), iOS (13,0)]
[Protocol] [Protocol]
interface ASAuthorizationProviderExtensionAuthorizationRequestHandler { interface ASAuthorizationProviderExtensionAuthorizationRequestHandler {
@ -499,7 +502,7 @@ namespace AuthenticationServices {
void CancelAuthorization (ASAuthorizationProviderExtensionAuthorizationRequest request); void CancelAuthorization (ASAuthorizationProviderExtensionAuthorizationRequest request);
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoWatch, NoTV, Mac (10,15), iOS (13,0)] [NoWatch, NoTV, Mac (10,15), iOS (13,0)]
enum ASAuthorizationProviderAuthorizationOperation { enum ASAuthorizationProviderAuthorizationOperation {
// no value yet - but we must handle `nil` as a default value // no value yet - but we must handle `nil` as a default value
@ -507,12 +510,12 @@ namespace AuthenticationServices {
[Field (null)] [Field (null)]
None, None,
[Mac (10, 16), iOS (14, 0)] [Mac (11, 0), iOS (14, 0)]
[Field ("ASAuthorizationProviderAuthorizationOperationConfigurationRemoved")] [Field ("ASAuthorizationProviderAuthorizationOperationConfigurationRemoved")]
ConfigurationRemoved, ConfigurationRemoved,
} }
[Unavailable (PlatformName.UIKitForMac)][Advice ("This API is not available when using UIKit on macOS.")] [Introduced (PlatformName.MacCatalyst, 14, 0)]
[NoWatch, NoTV, Mac (10,15), iOS (13,0)] [NoWatch, NoTV, Mac (10,15), iOS (13,0)]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
interface ASAuthorizationProviderExtensionAuthorizationRequest { interface ASAuthorizationProviderExtensionAuthorizationRequest {
@ -567,17 +570,17 @@ namespace AuthenticationServices {
NSDictionary AuthorizationOptions { get; } NSDictionary AuthorizationOptions { get; }
[iOS (14,0)] [iOS (14,0)]
[Mac (10,16)] [Mac (11,0)]
[Export ("callerManaged")] [Export ("callerManaged")]
bool CallerManaged { [Bind ("isCallerManaged")] get; } bool CallerManaged { [Bind ("isCallerManaged")] get; }
[iOS (14,0)] [iOS (14,0)]
[Mac (10,16)] [Mac (11,0)]
[Export ("callerTeamIdentifier")] [Export ("callerTeamIdentifier")]
string CallerTeamIdentifier { get; } string CallerTeamIdentifier { get; }
[iOS (14,0)] [iOS (14,0)]
[Mac (10,16)] [Mac (11,0)]
[Export ("localizedCallerDisplayName")] [Export ("localizedCallerDisplayName")]
string LocalizedCallerDisplayName { get; } string LocalizedCallerDisplayName { get; }
} }
@ -780,9 +783,9 @@ namespace AuthenticationServices {
} }
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASAccountAuthenticationModificationRequest { interface ASAccountAuthenticationModificationRequest {
@ -790,9 +793,9 @@ namespace AuthenticationServices {
interface IASAccountAuthenticationModificationControllerDelegate {} interface IASAccountAuthenticationModificationControllerDelegate {}
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[Protocol][Model (AutoGeneratedName = true)] [Protocol][Model (AutoGeneratedName = true)]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
interface ASAccountAuthenticationModificationControllerDelegate { interface ASAccountAuthenticationModificationControllerDelegate {
@ -806,9 +809,9 @@ namespace AuthenticationServices {
interface IASAccountAuthenticationModificationControllerPresentationContextProviding {} interface IASAccountAuthenticationModificationControllerPresentationContextProviding {}
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[Protocol] [Protocol]
interface ASAccountAuthenticationModificationControllerPresentationContextProviding { interface ASAccountAuthenticationModificationControllerPresentationContextProviding {
@ -817,9 +820,9 @@ namespace AuthenticationServices {
UIWindow GetPresentationAnchor (ASAccountAuthenticationModificationController controller); UIWindow GetPresentationAnchor (ASAccountAuthenticationModificationController controller);
} }
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[BaseType (typeof (NSObject))] [BaseType (typeof (NSObject))]
interface ASAccountAuthenticationModificationController { interface ASAccountAuthenticationModificationController {
@ -837,9 +840,9 @@ namespace AuthenticationServices {
void PerformRequest (ASAccountAuthenticationModificationRequest request); void PerformRequest (ASAccountAuthenticationModificationRequest request);
} }
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[BaseType (typeof (NSExtensionContext))] [BaseType (typeof (NSExtensionContext))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASAccountAuthenticationModificationExtensionContext { interface ASAccountAuthenticationModificationExtensionContext {
@ -858,9 +861,9 @@ namespace AuthenticationServices {
void CancelRequest (NSError error); void CancelRequest (NSError error);
} }
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[BaseType (typeof (ASAccountAuthenticationModificationRequest))] [BaseType (typeof (ASAccountAuthenticationModificationRequest))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASAccountAuthenticationModificationReplacePasswordWithSignInWithAppleRequest { interface ASAccountAuthenticationModificationReplacePasswordWithSignInWithAppleRequest {
@ -878,9 +881,9 @@ namespace AuthenticationServices {
NSDictionary UserInfo { get; } NSDictionary UserInfo { get; }
} }
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[BaseType (typeof (ASAccountAuthenticationModificationRequest))] [BaseType (typeof (ASAccountAuthenticationModificationRequest))]
[DisableDefaultCtor] [DisableDefaultCtor]
interface ASAccountAuthenticationModificationUpgradePasswordToStrongPasswordRequest { interface ASAccountAuthenticationModificationUpgradePasswordToStrongPasswordRequest {
@ -898,9 +901,9 @@ namespace AuthenticationServices {
NSDictionary UserInfo { get; } NSDictionary UserInfo { get; }
} }
[Introduced (PlatformName.UIKitForMac, 14, 0)]
[iOS (14,0)] [iOS (14,0)]
[NoWatch, NoTV, NoMac] [NoWatch, NoTV, NoMac]
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
[BaseType (typeof (UIViewController))] [BaseType (typeof (UIViewController))]
interface ASAccountAuthenticationModificationViewController { interface ASAccountAuthenticationModificationViewController {