forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDefinition.cs
221 lines (176 loc) · 10.6 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
using System.Collections.Generic;
namespace Firebase.RemoteConfig
{
// typedef void (^FIRRemoteConfigFetchCompletion)(FIRRemoteConfigFetchStatus, NSError * _Nullable);
delegate void RemoteConfigFetchCompletionHandler (RemoteConfigFetchStatus status, [NullAllowed] NSError error);
// typedef void (^FIRRemoteConfigActivateCompletion)(NSError * _Nullable);
delegate void RemoteConfigActivateCompletionHandler ([NullAllowed] NSError error);
// typedef void (^FIRRemoteConfigInitializationCompletion)(NSError * _Nullable);
delegate void RemoteConfigInitializationCompletionHandler ([NullAllowed] NSError error);
// typedef void (^FIRRemoteConfigFetchAndActivateCompletion)(FIRRemoteConfigFetchAndActivateStatus, NSError * _Nullable);
delegate void RemoteConfigFetchAndActivateCompletionHandler (RemoteConfigFetchAndActivateStatus status, [NullAllowed] NSError error);
// @interface FIRRemoteConfigValue : NSObject <NSCopying>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRRemoteConfigValue")]
interface RemoteConfigValue : INSCopying
{
// @property (readonly, nonatomic) NSString * _Nullable stringValue;
[NullAllowed]
[Export ("stringValue")]
NSString NSStringValue { get; }
// @property (readonly, nonatomic) NSNumber * _Nullable numberValue;
[NullAllowed]
[Export ("numberValue")]
NSNumber NumberValue { get; }
// @property (readonly, nonatomic) NSData * _Nonnull dataValue;
[Export ("dataValue")]
NSData DataValue { get; }
// @property (readonly, nonatomic) BOOL boolValue;
[Export ("boolValue")]
bool BoolValue { get; }
// @property (readonly, nonatomic) id _Nullable JSONValue __attribute__((swift_name("jsonValue")));
[NullAllowed]
[Export ("JSONValue")]
NSObject JsonValue { get; }
// @property (readonly, nonatomic) FIRRemoteConfigSource source;
[Export ("source")]
RemoteConfigSource Source { get; }
}
// @interface FIRRemoteConfigSettings : NSObject
[BaseType (typeof (NSObject), Name = "FIRRemoteConfigSettings")]
interface RemoteConfigSettings
{
// @property (assign, nonatomic) NSTimeInterval minimumFetchInterval;
[Export ("minimumFetchInterval")]
double MinimumFetchInterval { get; set; }
// @property (assign, nonatomic) NSTimeInterval fetchTimeout;
[Export ("fetchTimeout")]
double FetchTimeout { get; set; }
// @property (readonly, nonatomic) BOOL isDeveloperModeEnabled;
[Obsolete ("This no longer needs to be set during development.")]
[Export ("isDeveloperModeEnabled")]
bool IsDeveloperModeEnabled { get; }
// -(FIRRemoteConfigSettings * _Nullable)initWithDeveloperModeEnabled:(BOOL)developerModeEnabled __attribute__((objc_designated_initializer));
[Obsolete ("This no longer needs to be set during development.")]
[Export ("initWithDeveloperModeEnabled:")]
IntPtr Constructor (bool developerModeEnabled);
}
// @interface FIRRemoteConfig : NSObject <NSFastEnumeration>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRRemoteConfig")]
interface RemoteConfig
{
// extern NSString *const _Nonnull FIRNamespaceGoogleMobilePlatform;
[Field ("FIRNamespaceGoogleMobilePlatform", "__Internal")]
NSString GoogleMobilePlatformNamespace { get; }
// extern NSString *const _Nonnull FIRRemoteConfigThrottledEndTimeInSecondsKey;
[Field ("FIRRemoteConfigThrottledEndTimeInSecondsKey", "__Internal")]
NSString ThrottledEndTimeInSecondsKey { get; }
// extern NSString *const _Nonnull FIRRemoteConfigErrorDomain;
[Field ("FIRRemoteConfigErrorDomain", "__Internal")]
NSString ErrorDomain { get; }
// @property (readonly, nonatomic, strong) NSDate * _Nullable lastFetchTime;
[NullAllowed]
[Export ("lastFetchTime", ArgumentSemantic.Strong)]
NSDate LastFetchTime { get; set; }
// @property (readonly, assign, nonatomic) FIRRemoteConfigFetchStatus lastFetchStatus;
[Export ("lastFetchStatus", ArgumentSemantic.Assign)]
RemoteConfigFetchStatus LastFetchStatus { get; }
// @property (readwrite, nonatomic, strong) FIRRemoteConfigSettings * _Nonnull configSettings;
[Export ("configSettings", ArgumentSemantic.Strong)]
RemoteConfigSettings ConfigSettings { get; set; }
// +(FIRRemoteConfig * _Nonnull)remoteConfig;
[Static]
[Export ("remoteConfig")]
RemoteConfig SharedInstance { get; }
// +(FIRRemoteConfig * _Nonnull)remoteConfigWithApp:(FIRApp * _Nonnull)app __attribute__((swift_name("remoteConfig(app:)")));
[Static]
[Export ("remoteConfigWithApp:")]
RemoteConfig Create (Core.App app);
// -(void)ensureInitializedWithCompletionHandler:(FIRRemoteConfigInitializationCompletion _Nonnull)completionHandler;
[Async]
[Export ("ensureInitializedWithCompletionHandler:")]
void EnsureInitialized (RemoteConfigInitializationCompletionHandler completionHandler);
// -(void)fetchWithCompletionHandler:(FIRRemoteConfigFetchCompletion _Nullable)completionHandler;
[Async]
[Export ("fetchWithCompletionHandler:")]
void Fetch ([NullAllowed] RemoteConfigFetchCompletionHandler completionHandler);
// -(void)fetchWithExpirationDuration:(NSTimeInterval)expirationDuration completionHandler:(FIRRemoteConfigFetchCompletion _Nullable)completionHandler;
[Async]
[Export ("fetchWithExpirationDuration:completionHandler:")]
void Fetch (double expirationDuration, [NullAllowed] RemoteConfigFetchCompletionHandler completionHandler);
// -(void)fetchAndActivateWithCompletionHandler:(FIRRemoteConfigFetchAndActivateCompletion _Nullable)completionHandler;
[Async]
[Export ("fetchAndActivateWithCompletionHandler:")]
void FetchAndActivate ([NullAllowed] RemoteConfigFetchAndActivateCompletionHandler completionHandler);
// -(void)activateWithCompletionHandler:(FIRRemoteConfigActivateCompletion _Nullable)completionHandler;
[Async]
[Export ("activateWithCompletionHandler:")]
void Activate ([NullAllowed] RemoteConfigActivateCompletionHandler completionHandler);
// -(BOOL)activateFetched;
[Obsolete ("Use the Activate method instead.")]
[Export ("activateFetched")]
bool ActivateFetched ();
// -(FIRRemoteConfigValue * _Nonnull)configValueForKey:(NSString * _Nullable)key;
[Export ("configValueForKey:")]
RemoteConfigValue GetConfigValue ([NullAllowed] string key);
// -(FIRRemoteConfigValue * _Nonnull)configValueForKey:(NSString * _Nullable)key namespace:(NSString * _Nullable)aNamespace __attribute__((deprecated("Use -[FIRRemoteConfig configValueForKey:] instead.")));
[Obsolete ("Use the GetConfigValue (string) overload method instead.")]
[Export ("configValueForKey:namespace:")]
RemoteConfigValue GetConfigValue ([NullAllowed] string key, [NullAllowed] string aNamespace);
// -(FIRRemoteConfigValue * _Nonnull)configValueForKey:(NSString * _Nullable)key source:(FIRRemoteConfigSource)source;
[Export ("configValueForKey:source:")]
RemoteConfigValue GetConfigValue ([NullAllowed] string key, RemoteConfigSource source);
// -(FIRRemoteConfigValue * _Nonnull)configValueForKey:(NSString * _Nullable)key namespace:(NSString * _Nullable)aNamespace source:(FIRRemoteConfigSource)source __attribute__((deprecated("Use -[FIRRemoteConfig configValueForKey:source:] instead.")));
[Obsolete ("Use the GetConfigValue (string, RemoteConfigSource) overload method instead.")]
[Export ("configValueForKey:namespace:source:")]
RemoteConfigValue GetConfigValue ([NullAllowed] string key, [NullAllowed] string aNamespace, RemoteConfigSource source);
// -(NSArray<NSString *> * _Nonnull)allKeysFromSource:(FIRRemoteConfigSource)source;
[Export ("allKeysFromSource:")]
string [] GetAllKeys (RemoteConfigSource source);
// -(NSArray<NSString *> * _Nonnull)allKeysFromSource:(FIRRemoteConfigSource)source namespace:(NSString * _Nullable)aNamespace __attribute__((deprecated("Use -[FIRRemoteConfig allKeysFromSource:] instead.")));
[Obsolete ("Use the GetAllKeys (RemoteConfigSource) overload method instead.")]
[Export ("allKeysFromSource:namespace:")]
string [] GetAllKeys (RemoteConfigSource source, [NullAllowed] string aNamespace);
// -(NSSet<NSString *> * _Nonnull)keysWithPrefix:(NSString * _Nullable)prefix;
[Export ("keysWithPrefix:")]
NSSet<NSString> GetKeys ([NullAllowed] string prefix);
// -(NSSet<NSString *> * _Nonnull)keysWithPrefix:(NSString * _Nullable)prefix namespace:(NSString * _Nullable)aNamespace;
[Obsolete ("Use the GetKeys (string) overload method instead.")]
[Export ("keysWithPrefix:namespace:")]
NSSet<NSString> GetKeys ([NullAllowed] string prefix, [NullAllowed] string aNamespace);
// -(void)setDefaults:(NSDictionary<NSString *,NSObject *> * _Nullable)defaults;
[Export ("setDefaults:")]
void SetDefaults ([NullAllowed] NSDictionary nsDefaults);
[Wrap ("SetDefaults (defaults == null ? null : NSDictionary.FromObjectsAndKeys (System.Linq.Enumerable.ToArray (defaults.Values), System.Linq.Enumerable.ToArray (defaults.Keys), defaults.Keys.Count))")]
void SetDefaults (Dictionary<object, object> defaults);
// -(void)setDefaults:(NSDictionary<NSString *,NSObject *> * _Nullable)defaultConfig namespace:(NSString * _Nullable)aNamespace;
[Obsolete ("Use the SetDefaults (NSDictionary) overload method instead.")]
[Export ("setDefaults:namespace:")]
void SetDefaults ([NullAllowed] NSDictionary nsDefaults, [NullAllowed] string aNamespace);
[Obsolete ("Use the SetDefaults (Dictionary) overload method instead.")]
[Wrap ("SetDefaults (defaults == null ? null : NSDictionary.FromObjectsAndKeys (System.Linq.Enumerable.ToArray (defaults.Values), System.Linq.Enumerable.ToArray (defaults.Keys), defaults.Keys.Count), aNamespace)")]
void SetDefaults (Dictionary<object, object> defaults, string aNamespace);
// -(void)setDefaultsFromPlistFileName:(NSString * _Nullable)fileName;
[Export ("setDefaultsFromPlistFileName:")]
void SetDefaults ([NullAllowed] string plistFileName);
// -(void)setDefaultsFromPlistFileName:(NSString * _Nullable)fileName namespace:(NSString * _Nullable)aNamespace;
[Obsolete ("Use the SetDefaults (string) overload method instead.")]
[Export ("setDefaultsFromPlistFileName:namespace:")]
void SetDefaults ([NullAllowed] string plistFileName, [NullAllowed] string aNamespace);
// -(FIRRemoteConfigValue * _Nullable)defaultValueForKey:(NSString * _Nullable)key;
[return: NullAllowed]
[Export ("defaultValueForKey:")]
RemoteConfigValue GetDefaultValue ([NullAllowed] string key);
// -(FIRRemoteConfigValue * _Nullable)defaultValueForKey:(NSString * _Nullable)key namespace:(NSString * _Nullable)aNamespace;
[Obsolete ("Use the GetDefaultValue (string) overload method instead.")]
[return: NullAllowed]
[Export ("defaultValueForKey:namespace:")]
RemoteConfigValue GetDefaultValue ([NullAllowed] string key, [NullAllowed] string aNamespace);
}
}