forked from xamarin/GoogleApisForiOSComponents
-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathApiDefinition.cs
More file actions
145 lines (122 loc) · 5.75 KB
/
Copy pathApiDefinition.cs
File metadata and controls
145 lines (122 loc) · 5.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
using System;
using Firebase.Core;
using Foundation;
using ObjCRuntime;
namespace Firebase.AppCheck {
// typedef void (^)(FIRAppCheckToken *_Nullable token, NSError *_Nullable error)
delegate void TokenCompletionHandler ([NullAllowed] AppCheckToken token, [NullAllowed] NSError error);
interface IAppCheckProviderFactory { }
// @interface FIRAppCheck : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRAppCheck")]
interface AppCheck {
// extern NS_SWIFT_NAME(AppCheckTokenDidChange) const NSNotificationName FIRAppCheckAppCheckTokenDidChangeNotification __attribute__((swift_name("AppCheckTokenDidChange")));
[Field ("FIRAppCheckAppCheckTokenDidChangeNotification", "__Internal")]
NSString TokenDidChangeNotification { get; }
// extern NS_SWIFT_NAME(AppCheckTokenNotificationKey) NSString *const kFIRAppCheckTokenNotificationKey __attribute__((swift_name("AppCheckTokenNotificationKey")));
[Field ("kFIRAppCheckTokenNotificationKey", "__Internal")]
NSString TokenNotificationKey { get; }
// extern NS_SWIFT_NAME(AppCheckAppNameNotificationKey) NSString *const kFIRAppCheckAppNameNotificationKey __attribute__((swift_name("AppCheckAppNameNotificationKey")));
[Field ("kFIRAppCheckAppNameNotificationKey", "__Internal")]
NSString AppNameNotificationKey { get; }
// +(instancetype _Nonnull)appCheck __attribute__((swift_name("appCheck()")));
[Static]
[Export ("appCheck")]
AppCheck SharedInstance { get; }
// +(instancetype _Nullable)appCheckWithApp:(FIRApp * _Nonnull)firebaseApp __attribute__((swift_name("appCheck(app:)")));
[Static]
[Export ("appCheckWithApp:")]
[return: NullAllowed]
AppCheck Create (App firebaseApp);
// -(void)tokenForcingRefresh:(BOOL)forcingRefresh completion:(void (^ _Nonnull)(FIRAppCheckToken * _Nullable, NSError * _Nullable))handler __attribute__((swift_name("token(forcingRefresh:completion:)")));
[Export ("tokenForcingRefresh:completion:")]
void TokenForcingRefresh (bool forcingRefresh, TokenCompletionHandler handler);
// +(void)setAppCheckProviderFactory:(id<FIRAppCheckProviderFactory> _Nullable)factory;
[Static]
[Export ("setAppCheckProviderFactory:")]
void SetAppCheckProviderFactory ([NullAllowed] IAppCheckProviderFactory factory);
// @property (assign, nonatomic) BOOL isTokenAutoRefreshEnabled;
[Export ("isTokenAutoRefreshEnabled")]
bool IsTokenAutoRefreshEnabled { get; set; }
}
// @protocol FIRAppCheckProvider <NSObject>
interface IAppCheckProvider { }
[Model]
[BaseType (typeof (NSObject))]
[Protocol (Name = "FIRAppCheckProvider")]
interface AppCheckProvider {
// @required -(void)getTokenWithCompletion:(void (^ _Nonnull)(FIRAppCheckToken * _Nullable, NSError * _Nullable))handler __attribute__((swift_name("getToken(completion:)")));
[Abstract]
[Export ("getTokenWithCompletion:")]
void GetTokenWithCompletion (TokenCompletionHandler handler);
}
// @protocol FIRAppCheckProviderFactory <NSObject>
[Model]
[BaseType (typeof (NSObject))]
[Protocol (Name = "FIRAppCheckProviderFactory")]
interface AppCheckProviderFactory {
// @required -(id<FIRAppCheckProvider> _Nullable)createProviderWithApp:(FIRApp * _Nonnull)app;
[Abstract]
[Export ("createProviderWithApp:")]
[return: NullAllowed]
NSObject CreateProviderWithApp (App app);
}
// @interface FIRAppCheckToken : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRAppCheckToken")]
interface AppCheckToken {
// @property (readonly, nonatomic) NSString * _Nonnull token;
[Export ("token")]
string Token { get; }
// @property (readonly, nonatomic) NSDate * _Nonnull expirationDate;
[Export ("expirationDate")]
NSDate ExpirationDate { get; }
// -(instancetype _Nonnull)initWithToken:(NSString * _Nonnull)token expirationDate:(NSDate * _Nonnull)expirationDate;
[Export ("initWithToken:expirationDate:")]
NativeHandle Constructor (string token, NSDate expirationDate);
}
// @interface FIRAppCheckDebugProvider : NSObject <FIRAppCheckProvider>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRAppCheckDebugProvider")]
interface AppCheckDebugProvider : IAppCheckProvider {
// -(instancetype _Nullable)initWithApp:(FIRApp * _Nonnull)app;
[return: NullAllowed]
[Export ("initWithApp:")]
NativeHandle Constructor (App app);
// -(NSString * _Nonnull)localDebugToken;
[Export ("localDebugToken")]
string LocalDebugToken { get; }
// -(NSString * _Nonnull)currentDebugToken;
[Export ("currentDebugToken")]
string CurrentDebugToken { get; }
}
// @interface FIRAppCheckDebugProviderFactory : NSObject <FIRAppCheckProviderFactory>
[BaseType (typeof (NSObject), Name = "FIRAppCheckDebugProviderFactory")]
interface AppCheckDebugProviderFactory : AppCheckProviderFactory {
}
// @interface FIRDeviceCheckProvider : NSObject <FIRAppCheckProvider>
//[TV (11, 0), NoWatch, Mac (10, 15), iOS (11, 0)]
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRDeviceCheckProvider")]
interface DeviceCheckProvider : AppCheckProvider {
// -(instancetype _Nullable)initWithApp:(FIRApp * _Nonnull)app;
[return: NullAllowed]
[Export ("initWithApp:")]
NativeHandle Constructor (App app);
}
// @interface FIRAppAttestProvider : NSObject <FIRAppCheckProvider>
//[NoTV, NoWatch, NoMac, iOS (14, 0)]
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRAppAttestProvider")]
interface AppAttestProvider : AppCheckProvider {
// -(instancetype _Nullable)initWithApp:(FIRApp * _Nonnull)app;
[return: NullAllowed]
[Export ("initWithApp:")]
NativeHandle Constructor (App app);
}
// @interface FIRDeviceCheckProviderFactory : NSObject <FIRAppCheckProviderFactory>
//[TV (11, 0), NoWatch, Mac (10, 15), iOS (11, 0)]
[BaseType (typeof (NSObject), Name = "FIRDeviceCheckProviderFactory")]
interface DeviceCheckProviderFactory : AppCheckProviderFactory {
}
}