This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathApiDefinition.cs
More file actions
176 lines (139 loc) · 7.15 KB
/
ApiDefinition.cs
File metadata and controls
176 lines (139 loc) · 7.15 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
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
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
using System.Collections.Generic;
#if !NET
using NativeHandle = System.IntPtr;
#endif
namespace Firebase.RemoteConfig
{
// typedef void (^FIRRemoteConfigFetchCompletion)(FIRRemoteConfigFetchStatus, NSError * _Nullable);
delegate void RemoteConfigFetchCompletionHandler (RemoteConfigFetchStatus status, [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);
// typedef void (^_Nullable)(BOOL changed, NSError *_Nullable error);
delegate void RemoteConfigActivateCompletionHandler (bool changed, [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(nonatomic, readonly, nonnull) NSNumber *numberValue;
[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; }
}
// @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(nonatomic, readonly, strong, nullable) NSDate *lastFetchTime;
[NullAllowed]
[Export ("lastFetchTime", ArgumentSemantic.Strong)]
NSDate LastFetchTime { get; }
// @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)activateWithCompletion:(void (^_Nullable)(BOOL changed, NSError *_Nullable error))completion;
[Async]
[Export ("activateWithCompletion:")]
void Activate ([NullAllowed] RemoteConfigActivateCompletionHandler completionHandler);
[Wrap ("Activate (null)")]
void Activate ();
// - (nonnull FIRRemoteConfigValue *)objectForKeyedSubscript:(nonnull NSString *)key;
[Export ("objectForKeyedSubscript:")]
RemoteConfigValue GetObjectForKeyedSubscript (NSString key);
// -(FIRRemoteConfigValue * _Nonnull)configValueForKey:(NSString * _Nullable)key;
[Export ("configValueForKey:")]
RemoteConfigValue GetConfigValue ([NullAllowed] string key);
// -(FIRRemoteConfigValue * _Nonnull)configValueForKey:(NSString * _Nullable)key source:(FIRRemoteConfigSource)source;
[Export ("configValueForKey:source:")]
RemoteConfigValue GetConfigValue ([NullAllowed] string key, RemoteConfigSource source);
// -(NSArray<NSString *> * _Nonnull)allKeysFromSource:(FIRRemoteConfigSource)source;
[Export ("allKeysFromSource:")]
string [] GetAllKeys (RemoteConfigSource source);
// -(NSSet<NSString *> * _Nonnull)keysWithPrefix:(NSString * _Nullable)prefix;
[Export ("keysWithPrefix:")]
NSSet<NSString> GetKeys ([NullAllowed] string prefix);
// -(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)setDefaultsFromPlistFileName:(NSString * _Nullable)fileName;
[Export ("setDefaultsFromPlistFileName:")]
void SetDefaults ([NullAllowed] string plistFileName);
// -(FIRRemoteConfigValue * _Nullable)defaultValueForKey:(NSString * _Nullable)key;
[return: NullAllowed]
[Export ("defaultValueForKey:")]
RemoteConfigValue GetDefaultValue ([NullAllowed] string key);
}
}