This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 161
/
ApiDefinition.cs
618 lines (489 loc) · 27.2 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
using System;
using UIKit;
using Foundation;
using ObjCRuntime;
using CoreGraphics;
using CoreFoundation;
#if !NET
using NativeHandle = System.IntPtr;
#endif
namespace Firebase.Database
{
// @interface FIRDatabase : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRDatabase")]
interface Database
{
// +(FIRDatabase * _Nonnull)database;
[Static]
[Export ("database")]
Database DefaultInstance { get; }
// + (FIRDatabase *)databaseWithURL:(NSString *)url NS_SWIFT_NAME(database(url:));
[Static]
[Export ("databaseWithURL:")]
Database From (string url);
// + (FIRDatabase *)databaseForApp:(FIRApp *)app URL:(NSString*) url NS_SWIFT_NAME (database(app:url:));
[Static]
[Export ("databaseForApp:URL:")]
Database From (Firebase.Core.App app, string url);
// +(FIRDatabase * _Nonnull)databaseForApp:(FIRApp * _Nonnull)app;
[Static]
[Export ("databaseForApp:")]
Database From (Firebase.Core.App app);
// @property (readonly, nonatomic, weak) FIRApp * _Nullable app;
[NullAllowed, Export ("app", ArgumentSemantic.Weak)]
Firebase.Core.App App { get; }
// -(FIRDatabaseReference * _Nonnull)reference;
[Export ("reference")]
DatabaseReference GetRootReference ();
// -(FIRDatabaseReference * _Nonnull)referenceWithPath:(NSString * _Nonnull)path;
[Export ("referenceWithPath:")]
DatabaseReference GetReferenceFromPath (string path);
// -(FIRDatabaseReference * _Nonnull)referenceFromURL:(NSString * _Nonnull)databaseUrl;
[Export ("referenceFromURL:")]
DatabaseReference GetReferenceFromUrl (string databaseUrl);
// -(void)purgeOutstandingWrites;
[Export ("purgeOutstandingWrites")]
void PurgeOutstandingWrites ();
// -(void)goOffline;
[Export ("goOffline")]
void GoOffline ();
// -(void)goOnline;
[Export ("goOnline")]
void GoOnline ();
// @property (nonatomic) BOOL persistenceEnabled;
[Export ("persistenceEnabled")]
bool PersistenceEnabled { get; set; }
// @property (nonatomic) NSUInteger persistenceCacheSizeBytes;
[Export ("persistenceCacheSizeBytes")]
nuint PersistenceCacheSizeBytes { get; set; }
// @property (nonatomic, strong) dispatch_queue_t _Nonnull callbackQueue;
[Export ("callbackQueue", ArgumentSemantic.Strong)]
DispatchQueue CallbackQueue { get; set; }
// +(void)setLoggingEnabled:(BOOL)enabled;
[Static]
[Export ("setLoggingEnabled:")]
void SetLoggingEnabled (bool enabled);
// +(NSString * _Nonnull)sdkVersion;
[Static]
[Export ("sdkVersion")]
string SdkVersion { get; }
// - (void) useEmulatorWithHost:(NSString*) host port:(NSInteger) port;
[Export ("useEmulatorWithHost:port:")]
void UseEmulatorWithHost (string host, uint port);
}
delegate void DatabaseQueryUpdateHandler (DataSnapshot snapshot);
delegate void DatabaseQueryPreviousSiblingKeyUpdateHandler (DataSnapshot snapshot, [NullAllowed] string prevKey);
delegate void DatabaseQueryCancelHandler (NSError error);
// @interface FIRDatabaseQuery : NSObject
[BaseType (typeof (NSObject), Name = "FIRDatabaseQuery")]
interface DatabaseQuery
{
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block;
[Export ("observeEventType:withBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block;
[Export ("observeEventType:andPreviousSiblingKeyWithBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[Export ("observeEventType:withBlock:withCancelBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[Export ("observeEventType:andPreviousSiblingKeyWithBlock:withCancelBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block;
[Export ("observeSingleEventOfType:withBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block;
[Export ("observeSingleEventOfType:andPreviousSiblingKeyWithBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[Export ("observeSingleEventOfType:withBlock:withCancelBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[Export ("observeSingleEventOfType:andPreviousSiblingKeyWithBlock:withCancelBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(void)removeObserverWithHandle:(FIRDatabaseHandle)handle;
[Export ("removeObserverWithHandle:")]
void RemoveObserver (nuint handle);
// -(void)removeAllObservers;
[Export ("removeAllObservers")]
void RemoveAllObservers ();
// -(void)keepSynced:(BOOL)keepSynced;
[Export ("keepSynced:")]
void KeepSynced (bool keepSynced);
// -(FIRDatabaseQuery * _Nonnull)queryLimitedToFirst:(NSUInteger)limit;
[Export ("queryLimitedToFirst:")]
DatabaseQuery GetQueryLimitedToFirst (nuint limit);
// -(FIRDatabaseQuery * _Nonnull)queryLimitedToLast:(NSUInteger)limit;
[Export ("queryLimitedToLast:")]
DatabaseQuery GetQueryLimitedToLast (nuint limit);
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByChild:(NSString * _Nonnull)key;
[Export ("queryOrderedByChild:")]
DatabaseQuery GetQueryOrderedByChild (string key);
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByKey;
[Export ("queryOrderedByKey")]
DatabaseQuery GetQueryOrderedByKey ();
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByValue;
[Export ("queryOrderedByValue")]
DatabaseQuery GetQueryOrderedByValue ();
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByPriority;
[Export ("queryOrderedByPriority")]
DatabaseQuery GetQueryOrderedByPriority ();
// -(FIRDatabaseQuery * _Nonnull)queryStartingAtValue:(id _Nullable)startValue;
[Export ("queryStartingAtValue:")]
DatabaseQuery GetQueryStartingAtValue ([NullAllowed] NSObject startValue);
// -(FIRDatabaseQuery * _Nonnull)queryStartingAtValue:(id _Nullable)startValue childKey:(NSString * _Nullable)childKey;
[Export ("queryStartingAtValue:childKey:")]
DatabaseQuery GetQueryStartingAtValue ([NullAllowed] NSObject startValue, [NullAllowed] string childKey);
// - (FIRDatabaseQuery *)queryStartingAfterValue:(nullable id)startAfterValue;
[New]
[Export ("queryStartingAfterValue:")]
DatabaseQuery GetQueryStartingAfterValue ([NullAllowed] NSObject startAfterValue);
// - (FIRDatabaseQuery *)queryStartingAfterValue:(nullable id)startAfterValue childKey:(nullable NSString *)childKey;
[New]
[Export ("queryStartingAfterValue:childKey:")]
DatabaseQuery GetQueryStartingAfterValue ([NullAllowed] NSObject startAfterValue, [NullAllowed] string childKey);
// -(FIRDatabaseQuery * _Nonnull)queryEndingAtValue:(id _Nullable)endValue;
[Export ("queryEndingAtValue:")]
DatabaseQuery GetQueryEndingAtValue ([NullAllowed] NSObject endValue);
// -(FIRDatabaseQuery * _Nonnull)queryEndingAtValue:(id _Nullable)endValue childKey:(NSString * _Nullable)childKey;
[Export ("queryEndingAtValue:childKey:")]
DatabaseQuery GetQueryEndingAtValue ([NullAllowed] NSObject endValue, [NullAllowed] string childKey);
// - (FIRDatabaseQuery *)queryEndingBeforeValue:(nullable id)endValue;
[New]
[Export ("queryEndingBeforeValue:")]
DatabaseQuery GetQueryEndingBeforeValue ([NullAllowed] NSObject endValue);
// - (FIRDatabaseQuery *)queryEndingBeforeValue:(nullable id)endValue childKey:(nullable NSString *)childKey;
[New]
[Export ("queryEndingBeforeValue:childKey:")]
DatabaseQuery GetQueryEndingBeforeValue ([NullAllowed] NSObject endValue, [NullAllowed] string childKey);
// -(FIRDatabaseQuery * _Nonnull)queryEqualToValue:(id _Nullable)value;
[Export ("queryEqualToValue:")]
DatabaseQuery GetQueryEqualToValue ([NullAllowed] NSObject value);
// -(FIRDatabaseQuery * _Nonnull)queryEqualToValue:(id _Nullable)value childKey:(NSString * _Nullable)childKey;
[Export ("queryEqualToValue:childKey:")]
DatabaseQuery GetQueryEqualToValue ([NullAllowed] NSObject value, [NullAllowed] string childKey);
// @property (readonly, nonatomic, strong) FIRDatabaseReference * _Nonnull ref;
[Export ("ref", ArgumentSemantic.Strong)]
DatabaseReference Reference { get; }
}
delegate void DatabaseReferenceCompletionHandler ([NullAllowed] NSError error, DatabaseReference reference);
delegate TransactionResult DatabaseReferenceTransactionHandler (MutableData currentData);
delegate void DatabaseReferenceTransactionCompletionHandler ([NullAllowed] NSError error, bool commited, [NullAllowed] DataSnapshot snapshot);
delegate void DataSnapshotCompletionHandler ([NullAllowed] NSError error, [NullAllowed] DataSnapshot snapshot);
// @interface FIRDatabaseReference : FIRDatabaseQuery
[BaseType (typeof (DatabaseQuery), Name = "FIRDatabaseReference")]
interface DatabaseReference
{
// -(FIRDatabaseReference * _Nonnull)child:(NSString * _Nonnull)pathString;
[Export ("child:")]
DatabaseReference GetChild (string pathString);
// -(FIRDatabaseReference * _Nonnull)childByAutoId;
[Export ("childByAutoId")]
DatabaseReference GetChildByAutoId ();
// -(void)setValue:(id _Nullable)value;
[Internal]
[Export ("setValue:")]
void _SetValue ([NullAllowed] NSObject value);
// -(void)setValue:(id _Nullable)value withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Internal]
[Export ("setValue:withCompletionBlock:")]
void _SetValue ([NullAllowed] NSObject value, DatabaseReferenceCompletionHandler completionHandler);
// -(void)setValue:(id _Nullable)value andPriority:(id _Nullable)priority;
[Internal]
[Export ("setValue:andPriority:")]
void _SetValue ([NullAllowed] NSObject value, [NullAllowed] NSObject priority);
// -(void)setValue:(id _Nullable)value andPriority:(id _Nullable)priority withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Internal]
[Export ("setValue:andPriority:withCompletionBlock:")]
void _SetValue ([NullAllowed] NSObject value, [NullAllowed] NSObject priority, DatabaseReferenceCompletionHandler completionHandler);
// -(void)removeValue;
[Export ("removeValue")]
void RemoveValue ();
// -(void)removeValueWithCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Export ("removeValueWithCompletionBlock:")]
void RemoveValue (DatabaseReferenceCompletionHandler completionHandler);
// -(void)setPriority:(id _Nullable)priority;
[Export ("setPriority:")]
void SetPriority ([NullAllowed] NSObject priority);
// -(void)setPriority:(id _Nullable)priority withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Export ("setPriority:withCompletionBlock:")]
void SetPriority ([NullAllowed] NSObject priority, DatabaseReferenceCompletionHandler completionHandler);
// -(void)updateChildValues:(NSDictionary * _Nonnull)values;
[Export ("updateChildValues:")]
void UpdateChildValues (NSDictionary values);
// -(void)updateChildValues:(NSDictionary * _Nonnull)values withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Export ("updateChildValues:withCompletionBlock:")]
void UpdateChildValues (NSDictionary values, DatabaseReferenceCompletionHandler completionHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block;
[New]
[Export ("observeEventType:withBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block;
[New]
[Export ("observeEventType:andPreviousSiblingKeyWithBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[New]
[Export ("observeEventType:withBlock:withCancelBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(FIRDatabaseHandle)observeEventType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[New]
[Export ("observeEventType:andPreviousSiblingKeyWithBlock:withCancelBlock:")]
nuint ObserveEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// - (void)getDataWithCompletionBlock: (void (^_Nonnull)(NSError* __nullable error, FIRDataSnapshot *snapshot))block;
[New]
[Export ("getDataWithCompletionBlock:")]
void GetData (DataSnapshotCompletionHandler completionHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block;
[New]
[Export ("observeSingleEventOfType:withBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block;
[New]
[Export ("observeSingleEventOfType:andPreviousSiblingKeyWithBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType withBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[New]
[Export ("observeSingleEventOfType:withBlock:withCancelBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(void)observeSingleEventOfType:(FIRDataEventType)eventType andPreviousSiblingKeyWithBlock:(void (^ _Nonnull)(FIRDataSnapshot * _Nonnull, NSString * _Nullable))block withCancelBlock:(void (^ _Nullable)(NSError * _Nonnull))cancelBlock;
[New]
[Export ("observeSingleEventOfType:andPreviousSiblingKeyWithBlock:withCancelBlock:")]
void ObserveSingleEvent (DataEventType eventType, DatabaseQueryPreviousSiblingKeyUpdateHandler completionHandler, [NullAllowed] DatabaseQueryCancelHandler cancelHandler);
// -(void)removeObserverWithHandle:(FIRDatabaseHandle)handle;
[New]
[Export ("removeObserverWithHandle:")]
void RemoveObserver (nuint handle);
// -(void)keepSynced:(BOOL)keepSynced;
[New]
[Export ("keepSynced:")]
void KeepSynced (bool keepSynced);
// -(void)removeAllObservers;
[New]
[Export ("removeAllObservers")]
void RemoveAllObservers ();
// -(FIRDatabaseQuery * _Nonnull)queryLimitedToFirst:(NSUInteger)limit;
[New]
[Export ("queryLimitedToFirst:")]
DatabaseQuery GetQueryLimitedToFirst (nuint limit);
// -(FIRDatabaseQuery * _Nonnull)queryLimitedToLast:(NSUInteger)limit;
[New]
[Export ("queryLimitedToLast:")]
DatabaseQuery GetQueryLimitedToLast (nuint limit);
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByChild:(NSString * _Nonnull)key;
[New]
[Export ("queryOrderedByChild:")]
DatabaseQuery GetQueryOrderedByChild (string key);
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByKey;
[New]
[Export ("queryOrderedByKey")]
DatabaseQuery GetQueryOrderedByKey ();
// -(FIRDatabaseQuery * _Nonnull)queryOrderedByPriority;
[New]
[Export ("queryOrderedByPriority")]
DatabaseQuery GetQueryOrderedByPriority ();
// -(FIRDatabaseQuery * _Nonnull)queryStartingAtValue:(id _Nullable)startValue;
[New]
[Export ("queryStartingAtValue:")]
DatabaseQuery GetQueryStartingAtValue ([NullAllowed] NSObject startValue);
// -(FIRDatabaseQuery * _Nonnull)queryStartingAtValue:(id _Nullable)startValue childKey:(NSString * _Nullable)childKey;
[New]
[Export ("queryStartingAtValue:childKey:")]
DatabaseQuery GetQueryStartingAtValue ([NullAllowed] NSObject startValue, [NullAllowed] string childKey);
// - (FIRDatabaseQuery *)queryStartingAfterValue:(nullable id)startAfterValue;
[New]
[Export ("queryStartingAfterValue:")]
DatabaseQuery GetQueryStartingAfterValue ([NullAllowed] NSObject startAfterValue);
// - (FIRDatabaseQuery *)queryStartingAfterValue:(nullable id)startAfterValue childKey:(nullable NSString *)childKey;
[New]
[Export ("queryStartingAfterValue:childKey:")]
DatabaseQuery GetQueryStartingAfterValue ([NullAllowed] NSObject startAfterValue, [NullAllowed] string childKey);
// -(FIRDatabaseQuery * _Nonnull)queryEndingAtValue:(id _Nullable)endValue;
[New]
[Export ("queryEndingAtValue:")]
DatabaseQuery GetQueryEndingAtValue ([NullAllowed] NSObject endValue);
// -(FIRDatabaseQuery * _Nonnull)queryEndingAtValue:(id _Nullable)endValue childKey:(NSString * _Nullable)childKey;
[New]
[Export ("queryEndingAtValue:childKey:")]
DatabaseQuery GetQueryEndingAtValue ([NullAllowed] NSObject endValue, [NullAllowed] string childKey);
// -(FIRDatabaseQuery * _Nonnull)queryEqualToValue:(id _Nullable)value;
[New]
[Export ("queryEqualToValue:")]
DatabaseQuery GetQueryEqualToValue ([NullAllowed] NSObject value);
// -(FIRDatabaseQuery * _Nonnull)queryEqualToValue:(id _Nullable)value childKey:(NSString * _Nullable)childKey;
[New]
[Export ("queryEqualToValue:childKey:")]
DatabaseQuery GetQueryEqualToValue ([NullAllowed] NSObject value, [NullAllowed] string childKey);
// -(void)onDisconnectSetValue:(id _Nullable)value;
[Internal]
[Export ("onDisconnectSetValue:")]
void _SetValueOnDisconnect ([NullAllowed] NSObject value);
// -(void)onDisconnectSetValue:(id _Nullable)value withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Internal]
[Export ("onDisconnectSetValue:withCompletionBlock:")]
void _SetValueOnDisconnect ([NullAllowed] NSObject value, DatabaseReferenceCompletionHandler completionHandler);
// -(void)onDisconnectSetValue:(id _Nullable)value andPriority:(id _Nonnull)priority;
[Internal]
[Export ("onDisconnectSetValue:andPriority:")]
void _SetValueOnDisconnect ([NullAllowed] NSObject value, NSObject priority);
// -(void)onDisconnectSetValue:(id _Nullable)value andPriority:(id _Nullable)priority withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Internal]
[Export ("onDisconnectSetValue:andPriority:withCompletionBlock:")]
void _SetValueOnDisconnect ([NullAllowed] NSObject value, [NullAllowed] NSObject priority, DatabaseReferenceCompletionHandler completionHandler);
// -(void)onDisconnectRemoveValue;
[Export ("onDisconnectRemoveValue")]
void RemoveValueOnDisconnect ();
// -(void)onDisconnectRemoveValueWithCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Export ("onDisconnectRemoveValueWithCompletionBlock:")]
void RemoveValueOnDisconnect (DatabaseReferenceCompletionHandler completionHandler);
// -(void)onDisconnectUpdateChildValues:(NSDictionary * _Nonnull)values;
[Export ("onDisconnectUpdateChildValues:")]
void UpdateChildValuesOnDisconnect (NSDictionary values);
// -(void)onDisconnectUpdateChildValues:(NSDictionary * _Nonnull)values withCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Export ("onDisconnectUpdateChildValues:withCompletionBlock:")]
void UpdateChildValuesOnDisconnect (NSDictionary values, DatabaseReferenceCompletionHandler completionHandler);
// -(void)cancelDisconnectOperations;
[Export ("cancelDisconnectOperations")]
void CancelDisconnectOperations ();
// -(void)cancelDisconnectOperationsWithCompletionBlock:(void (^ _Nullable)(NSError * _Nullable, FIRDatabaseReference * _Nonnull))block;
[Export ("cancelDisconnectOperationsWithCompletionBlock:")]
void CancelDisconnectOperations ([NullAllowed] DatabaseReferenceCompletionHandler completionHandler);
// +(void)goOffline;
[Static]
[Export ("goOffline")]
void GoOffline ();
// +(void)goOnline;
[Static]
[Export ("goOnline")]
void GoOnline ();
// -(void)runTransactionBlock:(FIRTransactionResult * _Nonnull (^ _Nonnull)(FIRMutableData * _Nonnull))block;
[Export ("runTransactionBlock:")]
void RunTransaction (DatabaseReferenceTransactionHandler transactionHandler);
// -(void)runTransactionBlock:(FIRTransactionResult * _Nonnull (^ _Nonnull)(FIRMutableData * _Nonnull))block andCompletionBlock:(void (^ _Nonnull)(NSError * _Nullable, BOOL, FIRDataSnapshot * _Nullable))completionBlock;
[Export ("runTransactionBlock:andCompletionBlock:")]
void RunTransaction (DatabaseReferenceTransactionHandler transactionHandler, DatabaseReferenceTransactionCompletionHandler completionBlock);
// -(void)runTransactionBlock:(FIRTransactionResult * _Nonnull (^ _Nonnull)(FIRMutableData * _Nonnull))block andCompletionBlock:(void (^ _Nullable)(NSError * _Nullable, BOOL, FIRDataSnapshot * _Nullable))completionBlock withLocalEvents:(BOOL)localEvents;
[Export ("runTransactionBlock:andCompletionBlock:withLocalEvents:")]
void RunTransaction (DatabaseReferenceTransactionHandler transactionHandler, DatabaseReferenceTransactionCompletionHandler completionBlock, bool localEvents);
// -(NSString * _Nonnull)description;
[New]
[Export ("description")]
string Description { get; }
// @property (readonly, nonatomic, strong) FIRDatabaseReference * _Nullable parent;
[NullAllowed]
[Export ("parent", ArgumentSemantic.Strong)]
DatabaseReference Parent { get; }
// @property (readonly, nonatomic, strong) FIRDatabaseReference * _Nonnull root;
[Export ("root", ArgumentSemantic.Strong)]
DatabaseReference Root { get; }
// @property (readonly, nonatomic, strong) NSString * _Nonnull key;
[Export ("key", ArgumentSemantic.Strong)]
string Key { get; }
// @property (readonly, nonatomic, strong) NSString * _Nonnull URL;
[Export ("URL", ArgumentSemantic.Strong)]
string Url { get; }
// @property (readonly, nonatomic, strong) FIRDatabase * _Nonnull database;
[Export ("database", ArgumentSemantic.Strong)]
Database Database { get; }
}
// @interface FIRDataSnapshot : NSObject
[BaseType (typeof (NSObject), Name = "FIRDataSnapshot")]
interface DataSnapshot
{
// -(FIRDataSnapshot * _Nonnull)childSnapshotForPath:(NSString * _Nonnull)childPathString;
[Export ("childSnapshotForPath:")]
DataSnapshot GetChildSnapshot (string childPathString);
// -(BOOL)hasChild:(NSString * _Nonnull)childPathString;
[Export ("hasChild:")]
bool HasChild (string childPathString);
// -(BOOL)hasChildren;
[Export ("hasChildren")]
bool HasChildren { get; }
// -(BOOL)exists;
[Export ("exists")]
bool Exists { get; }
// -(id _Nullable)valueInExportFormat;
[NullAllowed]
[Export ("valueInExportFormat")]
NSObject ValueInExportFormat { get; }
// @property (readonly, nonatomic, strong) id _Nullable value;
[Internal]
[NullAllowed]
[Export ("value")]
IntPtr _Value { get; }
// @property (readonly, nonatomic) NSUInteger childrenCount;
[Export ("childrenCount")]
nuint ChildrenCount { get; }
// @property (readonly, nonatomic, strong) FIRDatabaseReference * _Nonnull ref;
[Export ("ref", ArgumentSemantic.Strong)]
DatabaseReference Reference { get; }
// @property (readonly, nonatomic, strong) NSString * _Nonnull key;
[Export ("key", ArgumentSemantic.Strong)]
string Key { get; }
// @property (readonly, nonatomic, strong) NSEnumerator * _Nonnull children;
[Export ("children", ArgumentSemantic.Strong)]
NSEnumerator Children { get; }
// @property (readonly, nonatomic, strong) id _Nullable priority;
[NullAllowed]
[Export ("priority", ArgumentSemantic.Strong)]
NSObject Priority { get; }
}
// @interface FIRMutableData : NSObject
[BaseType (typeof (NSObject), Name = "FIRMutableData")]
interface MutableData
{
// -(BOOL)hasChildren;
[Export ("hasChildren")]
bool HasChildren { get; }
// -(BOOL)hasChildAtPath:(NSString * _Nonnull)path;
[Export ("hasChildAtPath:")]
bool HasChildAtPath (string path);
// -(FIRMutableData * _Nonnull)childDataByAppendingPath:(NSString * _Nonnull)path;
[Export ("childDataByAppendingPath:")]
MutableData GetChildData (string path);
// @property (nonatomic, strong) id _Nullable value;
[Internal]
[NullAllowed]
[Export ("value", ArgumentSemantic.Strong)]
IntPtr _Value { get; set; }
// @property (nonatomic, strong) id _Nullable priority;
[NullAllowed]
[Export ("priority", ArgumentSemantic.Strong)]
NSObject Priority { get; set; }
// @property (readonly, nonatomic) NSUInteger childrenCount;
[Export ("childrenCount")]
nuint ChildrenCount { get; }
// @property (readonly, nonatomic, strong) NSEnumerator * _Nonnull children;
[Export ("children", ArgumentSemantic.Strong)]
NSEnumerator Children { get; }
// @property (readonly, nonatomic, strong) NSString * _Nullable key;
[NullAllowed, Export ("key", ArgumentSemantic.Strong)]
string Key { get; }
}
// @interface FIRServerValue : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRServerValue")]
interface ServerValue
{
// +(NSDictionary * _Nonnull)timestamp;
[Static]
[Export ("timestamp")]
NSDictionary Timestamp { get; }
}
// @interface FIRTransactionResult : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "FIRTransactionResult")]
interface TransactionResult
{
// +(FIRTransactionResult * _Nonnull)successWithValue:(FIRMutableData * _Nonnull)value;
[Static]
[Export ("successWithValue:")]
TransactionResult Success (MutableData value);
// +(FIRTransactionResult * _Nonnull)abort;
[Static]
[Export ("abort")]
TransactionResult Abort ();
}
}