mirror of
https://github.com/bitwarden/mobile
synced 2025-12-10 05:13:31 +00:00
142 lines
6.5 KiB
C#
142 lines
6.5 KiB
C#
using System;
|
|
using AuthenticationServices;
|
|
using Foundation;
|
|
using ObjCRuntime;
|
|
|
|
namespace XamariniOS17CredentialProviderBinding
|
|
{
|
|
interface IASCredentialProviderCompatDelegate { }
|
|
|
|
// @protocol ASCredentialProviderCompatDelegate
|
|
[Protocol, Model(AutoGeneratedName = true)]
|
|
interface ASCredentialProviderCompatDelegate
|
|
{
|
|
// @required -(void)prepareInterfaceToProvideCredentialCompatFor:(ASCredentialRequestCompat * _Nonnull)credentialRequest;
|
|
[iOS(17, 0)]
|
|
[Abstract]
|
|
[Export("prepareInterfaceToProvideCredentialCompatFor:")]
|
|
void PrepareInterfaceToProvideCredentialCompatFor(ASCredentialRequestCompat credentialRequest);
|
|
|
|
// @required -(void)provideCredentialWithoutUserInteractionCompatFor:(ASCredentialRequestCompat * _Nonnull)credentialRequest;
|
|
[iOS(17, 0)]
|
|
[Abstract]
|
|
[Export("provideCredentialWithoutUserInteractionCompatFor:")]
|
|
void ProvideCredentialWithoutUserInteractionCompatFor(ASCredentialRequestCompat credentialRequest);
|
|
|
|
// @required -(void)prepareInterfaceCompatForPasskeyRegistration:(ASCredentialRequestCompat * _Nonnull)registrationRequest;
|
|
[iOS(17, 0)]
|
|
[Abstract]
|
|
[Export("prepareInterfaceCompatForPasskeyRegistration:")]
|
|
void PrepareInterfaceCompatForPasskeyRegistration(ASCredentialRequestCompat registrationRequest);
|
|
}
|
|
|
|
// @interface ASCredentialRequestCompat : NSObject
|
|
[iOS(17, 0)]
|
|
[BaseType (typeof(NSObject))]
|
|
[DisableDefaultCtor]
|
|
interface ASCredentialRequestCompat
|
|
{
|
|
// @property (nonatomic) enum ASCredentialRequestCompatType type;
|
|
[Export("type", ArgumentSemantic.Assign)]
|
|
ASCredentialRequestCompatType Type { get; set; }
|
|
|
|
// @property (nonatomic, strong) id<ASCredentialIdentity> _Nonnull credentialIdentity;
|
|
//[Export("credentialIdentity", ArgumentSemantic.Strong)]
|
|
//ASCredentialIdentity CredentialIdentity { get; set; }
|
|
|
|
|
|
// @property (readonly, nonatomic, strong) ASPasswordCredentialIdentity * _Nullable passwordCredentialIdentity;
|
|
[iOS(17, 0)]
|
|
[NullAllowed, Export("passwordCredentialIdentity", ArgumentSemantic.Strong)]
|
|
ASPasswordCredentialIdentity PasswordCredentialIdentity { get; }
|
|
|
|
// @property (readonly, nonatomic, strong) ASPasskeyCredentialIdentityCompat * _Nullable passkeyCredentialIdentity;
|
|
[iOS(17, 0)]
|
|
[NullAllowed, Export("passkeyCredentialIdentity", ArgumentSemantic.Strong)]
|
|
ASPasskeyCredentialIdentityCompat PasskeyCredentialIdentity { get; }
|
|
}
|
|
|
|
// @interface ASPasskeyCredentialIdentityCompat : NSObject
|
|
[BaseType(typeof(NSObject))]
|
|
[DisableDefaultCtor]
|
|
interface ASPasskeyCredentialIdentityCompat
|
|
{
|
|
// @property (copy, nonatomic) NSString * _Nonnull relyingPartyIdentifier;
|
|
[Export("relyingPartyIdentifier")]
|
|
string RelyingPartyIdentifier { get; set; }
|
|
|
|
// @property (copy, nonatomic) NSString * _Nonnull userName;
|
|
[Export("userName")]
|
|
string UserName { get; set; }
|
|
|
|
// @property (copy, nonatomic) NSData * _Nonnull credentialID;
|
|
[Export("credentialID", ArgumentSemantic.Copy)]
|
|
NSData CredentialID { get; set; }
|
|
|
|
// @property (copy, nonatomic) NSData * _Nonnull userHandle;
|
|
[Export("userHandle", ArgumentSemantic.Copy)]
|
|
NSData UserHandle { get; set; }
|
|
|
|
// @property (copy, nonatomic) NSString * _Nullable recordIdentifier;
|
|
[NullAllowed, Export("recordIdentifier")]
|
|
string RecordIdentifier { get; set; }
|
|
|
|
// @property (nonatomic) NSInteger rank;
|
|
[Export("rank")]
|
|
nint Rank { get; set; }
|
|
}
|
|
|
|
// @interface BaseASCredentialProviderViewController : ASCredentialProviderViewController
|
|
[BaseType (typeof(ASCredentialProviderViewController))]
|
|
interface BaseASCredentialProviderViewController
|
|
{
|
|
// -(void)prepareInterfaceToProvideCredentialForRequest:(id<ASCredentialRequest> _Nonnull)credentialRequest;
|
|
//[Export ("prepareInterfaceToProvideCredentialForRequest:")]
|
|
//void PrepareInterfaceToProvideCredentialForRequest (ASCredentialRequest credentialRequest);
|
|
|
|
//// -(void)provideCredentialWithoutUserInteractionForRequest:(id<ASCredentialRequest> _Nonnull)credentialRequest;
|
|
//[Export ("provideCredentialWithoutUserInteractionForRequest:")]
|
|
//void ProvideCredentialWithoutUserInteractionForRequest (ASCredentialRequest credentialRequest);
|
|
|
|
//// -(void)prepareInterfaceForPasskeyRegistration:(id<ASCredentialRequest> _Nonnull)registrationRequest;
|
|
//[Export ("prepareInterfaceForPasskeyRegistration:")]
|
|
//void PrepareInterfaceForPasskeyRegistration (ASCredentialRequest registrationRequest);
|
|
|
|
// -(void)prepareInterfaceToProvideCredentialCompatFor:(ASCredentialRequestCompat * _Nonnull)credentialRequest;
|
|
//[Export ("prepareInterfaceToProvideCredentialCompatFor:")]
|
|
// [Abstract]
|
|
// void PrepareInterfaceToProvideCredentialCompatFor (ASCredentialRequestCompat credentialRequest);
|
|
|
|
//// -(void)provideCredentialWithoutUserInteractionCompatFor:(ASCredentialRequestCompat * _Nonnull)credentialRequest;
|
|
//[Export ("provideCredentialWithoutUserInteractionCompatFor:")]
|
|
// [Abstract]
|
|
// void ProvideCredentialWithoutUserInteractionCompatFor (ASCredentialRequestCompat credentialRequest);
|
|
|
|
//// -(void)prepareInterfaceCompatForPasskeyRegistration:(ASCredentialRequestCompat * _Nonnull)registrationRequest;
|
|
//[Export ("prepareInterfaceCompatForPasskeyRegistration:")]
|
|
// [Abstract]
|
|
// void PrepareInterfaceCompatForPasskeyRegistration (ASCredentialRequestCompat registrationRequest);
|
|
|
|
[iOS(17, 0)]
|
|
[Export("SetCompatDelegate:")]
|
|
void SetCompatDelegate(IASCredentialProviderCompatDelegate @delegate);
|
|
|
|
// -(instancetype _Nonnull)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil __attribute__((objc_designated_initializer));
|
|
[Export ("initWithNibName:bundle:")]
|
|
[DesignatedInitializer]
|
|
IntPtr Constructor ([NullAllowed] string nibNameOrNil, [NullAllowed] NSBundle nibBundleOrNil);
|
|
|
|
//// -(instancetype _Nullable)initWithCoder:(NSCoder * _Nonnull)coder __attribute__((objc_designated_initializer));
|
|
//[Export ("initWithCoder:")]
|
|
//[DesignatedInitializer]
|
|
// IntPtr Constructor (NSCoder coder);
|
|
}
|
|
|
|
// @interface MyTest : NSObject
|
|
[BaseType(typeof(NSObject))]
|
|
//[DisableDefaultCtor]
|
|
interface MyTest
|
|
{
|
|
}
|
|
}
|