forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDefinition.cs
163 lines (133 loc) · 4.58 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
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
#if !NET
using NativeHandle = System.IntPtr;
#endif
namespace Firebase.Core
{
// typedef void (^FIRAppVoidBoolCallback)(BOOL);
delegate void AppVoidBoolHandler (bool success);
// @interface FIRApp : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRApp")]
interface App : INativeObject
{
// +(void)configure;
[Static]
[Export ("configure")]
void Configure ();
// +(void)configureWithOptions:(FIROptions * _Nonnull)options;
[Static]
[Export ("configureWithOptions:")]
void Configure (Options options);
// +(void)configureWithName:(NSString * _Nonnull)name options:(FIROptions * _Nonnull)options;
[Static]
[Export ("configureWithName:options:")]
void Configure (string name, Options options);
// +(FIRApp * _Nullable)defaultApp;
[Static]
[Export ("defaultApp")]
App DefaultInstance { get; }
// +(FIRApp * _Nullable)appNamed:(NSString * _Nonnull)name;
[Static]
[return: NullAllowed]
[Export ("appNamed:")]
App From (string name);
// +(NSDictionary * _Nullable)allApps;
[Static]
[return: NullAllowed]
[Export ("allApps")]
NSDictionary<NSString, App> GetAll ();
// -(void)deleteApp:(FIRAppVoidBoolCallback _Nonnull)completion;
[Export ("deleteApp:")]
void Delete (AppVoidBoolHandler completion);
// @property (readonly, copy, nonatomic) NSString * _Nonnull name;
[Export ("name")]
string Name { get; }
// @property (readonly, nonatomic) FIROptions * _Nonnull options;
[Export ("options", ArgumentSemantic.Copy)]
Options Options { get; }
// @property(nonatomic, readwrite, getter=isDataCollectionDefaultEnabled) BOOL dataCollectionDefaultEnabled;
[Export ("dataCollectionDefaultEnabled", ArgumentSemantic.Assign)]
bool DataCollectionDefaultEnabled { [Bind ("isDataCollectionDefaultEnabled")] get; set; }
}
// @interface FIRConfiguration : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRConfiguration")]
interface Configuration
{
// +(FIRConfiguration *)sharedInstance;
[Static]
[Export ("sharedInstance")]
Configuration SharedInstance { get; }
// - (void)setLoggerLevel:(FIRLoggerLevel)loggerLevel;
[Export ("setLoggerLevel:")]
void SetLoggerLevel (LoggerLevel loggerLevel);
}
// @interface FIROptions : NSObject <NSCopying>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIROptions")]
interface Options : INSCopying
{
// +(FIROptions *)defaultOptions;
[Static]
[NullAllowed]
[Export ("defaultOptions")]
Options DefaultInstance { get; }
// @property (readonly, copy, nonatomic) NSString * APIKey;
[NullAllowed]
[Export ("APIKey")]
string ApiKey { get; set; }
// @property(nonatomic, copy) NSString *bundleID;
[NullAllowed]
[Export ("bundleID")]
string BundleId { get; set; }
// @property (readonly, copy, nonatomic) NSString * clientID;
[NullAllowed]
[Export ("clientID")]
string ClientId { get; set; }
// @property (readonly, copy, nonatomic) NSString * trackingID;
[NullAllowed]
[Export ("trackingID")]
string TrackingId { get; set; }
// @property (readonly, copy, nonatomic) NSString * GCMSenderID;
[Export ("GCMSenderID")]
string GcmSenderId { get; set; }
// @property(nonatomic, readonly, copy) NSString *projectID;
[NullAllowed]
[Export ("projectID")]
string ProjectId { get; set; }
// @property (readonly, copy, nonatomic) NSString * androidClientID;
[NullAllowed]
[Export ("androidClientID")]
string AndroidClientId { get; set; }
// @property (readonly, copy, nonatomic) NSString * googleAppID;
[Export ("googleAppID")]
string GoogleAppId { get; set; }
// @property (readonly, copy, nonatomic) NSString * databaseURL;
[NullAllowed]
[Export ("databaseURL")]
string DatabaseUrl { get; set; }
// @property (readwrite, copy, nonatomic) NSString * deepLinkURLScheme;
[NullAllowed]
[Export ("deepLinkURLScheme")]
string DeepLinkUrlScheme { get; set; }
// @property (readonly, copy, nonatomic) NSString * storageBucket;
[NullAllowed]
[Export ("storageBucket")]
string StorageBucket { get; set; }
// @property(nonatomic, copy, nullable) NSString *appGroupID;
[NullAllowed]
[Export ("appGroupID")]
string AppGroupId { get; set; }
// - (instancetype)initWithContentsOfFile:(NSString *)plistPath;
[Export ("initWithContentsOfFile:")]
NativeHandle Constructor (string plistPath);
// - (instancetype)initWithGoogleAppID:(NSString *)googleAppID GCMSenderID:(NSString*) GCMSenderID;
[Export ("initWithGoogleAppID:GCMSenderID:")]
NativeHandle Constructor (string googleAppId, string gcmSenderId);
}
}