forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDefinition.cs
185 lines (153 loc) · 6.24 KB
/
ApiDefinition.cs
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
namespace Firebase.Invites
{
// @interface FIRReceivedInvite : NSObject
[BaseType (typeof (NSObject), Name = "FIRReceivedInvite")]
interface ReceivedInvite
{
// @property (readonly, copy, nonatomic) NSString * _Nonnull inviteId;
[Export ("inviteId")]
string InviteId { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull deepLink;
[Export ("deepLink")]
string DeepLink { get; }
// @property (readonly, assign, nonatomic) FIRReceivedInviteMatchType matchType;
[Export ("matchType", ArgumentSemantic.Assign)]
ReceivedInviteMatchType MatchType { get; }
}
interface IInviteDelegate
{
}
// @protocol FIRInviteDelegate <NSObject>
[Model (AutoGeneratedName = true)]
[Protocol]
[BaseType (typeof (NSObject), Name = "FIRInviteDelegate")]
interface InviteDelegate
{
// @optional -(void)inviteFinishedWithInvitations:(NSArray * _Nonnull)invitationIds error:(NSError * _Nullable)error;
[Export ("inviteFinishedWithInvitations:error:")]
void InviteFinished (string [] invitationIds, [NullAllowed] NSError error);
}
interface IInviteBuilder
{
}
// @protocol FIRInviteBuilder <NSObject>
[Protocol (Name = "FIRInviteBuilder")]
interface InviteBuilder
{
// @required -(void)setInviteDelegate:(id<FIRInviteDelegate> _Nonnull)inviteDelegate;
[Abstract]
[Export ("setInviteDelegate:")]
void SetInviteDelegate (IInviteDelegate inviteDelegate);
// @required -(void)setTitle:(NSString * _Nonnull)title;
[Abstract]
[Export ("setTitle:")]
void SetTitle (string title);
// @required -(void)setMessage:(NSString * _Nonnull)message;
[Abstract]
[Export ("setMessage:")]
void SetMessage (string message);
// @required -(void)setDeepLink:(NSString * _Nonnull)deepLink;
[Abstract]
[Export ("setDeepLink:")]
void SetDeepLink (string deepLink);
// @required -(void)setOtherPlatformsTargetApplication:(FIRInvitesTargetApplication * _Nonnull)targetApplication;
[Abstract]
[Export ("setOtherPlatformsTargetApplication:")]
void SetOtherPlatformsTargetApplication (InvitesTargetApplication targetApplication);
// @required -(void)setDescription:(NSString * _Nonnull)description;
[Obsolete ("This method is no longer supported in Firebase App Invites.")]
[Abstract]
[Export ("setDescription:")]
void SetDescription (string description);
// @required -(void)setCustomImage:(NSString * _Nonnull)imageURI;
[Abstract]
[Export ("setCustomImage:")]
void SetCustomImage (string imageUri);
// @required -(void)setCallToActionText:(NSString * _Nonnull)callToActionText;
[Abstract]
[Export ("setCallToActionText:")]
void SetCallToActionText (string callToActionText);
// @required -(void)setAndroidMinimumVersionCode:(NSInteger)versionCode;
[Abstract]
[Export ("setAndroidMinimumVersionCode:")]
void SetAndroidMinimumVersionCode (nint versionCode);
// @required -(void)open;
[Abstract]
[Export ("open")]
void Open ();
}
// typedef void (^FIRInvitesUniversalLinkHandler)(FIRReceivedInvite * _Nullable, NSError * _Nullable);
delegate void InvitesUniversalLinkHandler ([NullAllowed] ReceivedInvite receivedInvite, [NullAllowed] NSError error);
// @interface FIRInvites : NSObject
[BaseType (typeof (NSObject), Name = "FIRInvites")]
interface Invites
{
// extern NSString *const kFIRInvitesErrorDomain;
[Field ("kFIRInvitesErrorDomain", "__Internal")]
NSString ErrorDomain { get; }
// @property (nonatomic) FIRInvitesTargetApplication * _Nonnull targetApp;
[Export ("targetApp", ArgumentSemantic.Assign)]
InvitesTargetApplication TargetApp { get; set; }
// +(void)applicationDidFinishLaunchingWithOptions:(NSDictionary * _Nullable)launchOptions;
[Static]
[Export ("applicationDidFinishLaunchingWithOptions:")]
void ApplicationDidFinishLaunching ([NullAllowed] NSDictionary launchOptions);
// +(void)applicationDidFinishLaunching __attribute__((deprecated("Call |applicationDidFinishLaunchingWithOptions:| instead.")));
[Obsolete ("Call ApplicationDidFinishLaunching (NSDictionary) method instead.")]
[Static]
[Export ("applicationDidFinishLaunching")]
void ApplicationDidFinishLaunching ();
// +(id _Nullable)handleURL:(NSURL * _Nonnull)url sourceApplication:(NSString * _Nullable)sourceApplication annotation:(id _Nullable)annotation __attribute__((deprecated("Use |handleUniversalLink:completion:| instead.")));
[Obsolete ("Call HandleUniversalLink method instead.")]
[Static]
[return: NullAllowed]
[Export ("handleURL:sourceApplication:annotation:")]
ReceivedInvite HandleUrl (NSUrl url, [NullAllowed] string sourceApplication, [NullAllowed] NSObject annotation);
[Async]
[Static]
[Export ("handleUniversalLink:completion:")]
bool HandleUniversalLink (NSUrl Url, InvitesUniversalLinkHandler completion);
// +(void)completeInvitation __attribute__((deprecated("No longer need to call.")));
[Obsolete ("No longer need to call.")]
[Static]
[Export ("completeInvitation")]
void CompleteInvitation ();
// +(void)convertInvitation:(NSString * _Nonnull)invitationId;
[Static]
[Export ("convertInvitation:")]
void ConvertInvitation (string invitationId);
// +(id<FIRInviteBuilder> _Nullable)inviteDialog;
[Static]
[NullAllowed, Export ("inviteDialog")]
IInviteBuilder GetInviteDialog ();
// +(void)closeActiveInviteDialog;
[Static]
[Export ("closeActiveInviteDialog")]
void CloseActiveInviteDialog ();
// +(void)setAPIKey:(NSString * _Nonnull)apiKey;
[Static]
[Export ("setAPIKey:")]
void SetAPIKey (string apiKey);
// +(void)setGoogleAnalyticsTrackingId:(NSString * _Nonnull)trackingId;
[Static]
[Export ("setGoogleAnalyticsTrackingId:")]
void SetGoogleAnalyticsTrackingId (string trackingId);
// +(void)setDefaultOtherPlatformsTargetApplication:(FIRInvitesTargetApplication * _Nonnull)targetApplication;
[Static]
[Export ("setDefaultOtherPlatformsTargetApplication:")]
void SetDefaultOtherPlatformsTargetApplication (InvitesTargetApplication targetApplication);
}
// @interface FIRInvitesTargetApplication : NSObject
[BaseType (typeof (NSObject), Name = "FIRInvitesTargetApplication")]
interface InvitesTargetApplication
{
// @property (copy, nonatomic) NSString * androidClientID;
[Export ("androidClientID")]
string AndroidClientId { get; set; }
}
}