forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApiDefinition.cs
158 lines (130 loc) · 4.54 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
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
namespace Google.AppInvite
{
// @interface AppInvite (GGLContext)
[Category]
[BaseType (typeof(Google.Core.Context))]
interface GGLContext_AppInvite
{
// @property (readonly, nonatomic, strong) GINInviteTargetApplication * targetApp;
[Export ("targetApp", ArgumentSemantic.Strong)]
// InviteTargetApplication TargetApp { get; }
NSObject GetTargetApp ();
}
// I do not see wherer this is needed at this time.
// [Verify (ConstantsInterfaceAssociation)]
// partial interface Constants
// {
// // extern NSString *const kGINInviteErrorDomain;
// [Field ("kGINInviteErrorDomain")]
// NSString kGINInviteErrorDomain { get; }
// }
interface IInviteDelegate {}
// @protocol GINInviteDelegate <NSObject>
[Protocol, Model]
[BaseType (typeof(NSObject), Name="GINInviteDelegate")]
interface InviteDelegate
{
// @optional -(void)inviteFinishedWithInvitations:(NSArray *)invitationIds error:(NSError *)error;
[Export ("inviteFinishedWithInvitations:error:")]
void InviteFinished (string[] invitationIds, NSError error);
}
interface IInviteBuilder {}
// @protocol GINInviteBuilder <NSObject>
[Protocol, Model]
[BaseType (typeof(NSObject), Name="GINInviteBuilder")]
interface InviteBuilder
{
// @required -(void)setInviteDelegate:(id<GINInviteDelegate>)inviteDelegate;
[Abstract]
[Export ("setInviteDelegate:")]
void SetInviteDelegate (IInviteDelegate inviteDelegate);
// @required -(void)setTitle:(NSString *)title;
[Abstract]
[Export ("setTitle:")]
void SetTitle (string title);
// @required -(void)setMessage:(NSString *)message;
[Abstract]
[Export ("setMessage:")]
void SetMessage (string message);
// @required -(void)setDeepLink:(NSString *)deepLink;
[Abstract]
[Export ("setDeepLink:")]
void SetDeepLink (string deepLink);
// @required -(void)setOtherPlatformsTargetApplication:(GINInviteTargetApplication *)targetApplication;
[Abstract]
[Export ("setOtherPlatformsTargetApplication:")]
void SetOtherPlatformsTargetApplication (InviteTargetApplication targetApplication);
// @required -(void)open;
[Abstract]
[Export ("open")]
void Open ();
}
// @interface GINReceivedInvite : NSObject
[BaseType (typeof(NSObject), Name="GINReceivedInvite")]
interface ReceivedInvite
{
// @property (copy, nonatomic) NSString * inviteId;
[Export ("inviteId")]
string InviteId { get; set; }
// @property (copy, nonatomic) NSString * deepLink;
[Export ("deepLink")]
string DeepLink { get; set; }
// @property (assign, nonatomic) GINReceivedInviteMatchType matchType;
[Export ("matchType", ArgumentSemantic.Assign)]
ReceivedInviteMatchType MatchType { get; set; }
}
// @interface GINInvite : NSObject
[BaseType (typeof(NSObject), Name="GINInvite")]
interface Invite
{
// +(void)applicationDidFinishLaunching;
[Static]
[Export ("applicationDidFinishLaunching")]
void ApplicationDidFinishLaunching ();
// +(GINReceivedInvite *)handleURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
[Static]
[Export ("handleURL:sourceApplication:annotation:")]
ReceivedInvite HandleUrl (NSUrl url, string sourceApplication, [NullAllowed] NSObject annotation);
// +(void)completeInvitation;
[Static]
[Export ("completeInvitation")]
void CompleteInvitation ();
// +(void)convertInvitation:(NSString *)invitationId;
[Static]
[Export ("convertInvitation:")]
void ConvertInvitation (string invitationId);
// +(id<GINInviteBuilder>)inviteDialog;
[Static]
[Export ("inviteDialog")]
IInviteBuilder InviteDialog { get; }
// +(void)closeActiveInviteDialog;
[Static]
[Export ("closeActiveInviteDialog")]
void CloseActiveInviteDialog ();
// +(void)setAPIKey:(NSString *)apiKey;
[Static]
[Export ("setAPIKey:")]
void SetAPIKey (string apiKey);
// +(void)setGoogleAnalyticsTrackingId:(NSString *)trackingId;
[Static]
[Export ("setGoogleAnalyticsTrackingId:")]
void SetGoogleAnalyticsTrackingId (string trackingId);
// +(void)setDefaultOtherPlatformsTargetApplication:(GINInviteTargetApplication *)targetApplication;
[Static]
[Export ("setDefaultOtherPlatformsTargetApplication:")]
void SetDefaultOtherPlatformsTargetApplication (InviteTargetApplication targetApplication);
}
// @interface GINInviteTargetApplication : NSObject
[BaseType (typeof(NSObject), Name="GINInviteTargetApplication")]
interface InviteTargetApplication
{
// @property (copy, nonatomic) NSString * androidClientID;
[Export ("androidClientID")]
string AndroidClientID { get; set; }
}
}