motion-firebase 2.1.5 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +192 -64
  3. data/lib/firebase-auth/firebase_simple_login.rb +0 -76
  4. data/lib/firebase/fdata_snapshot.rb +4 -0
  5. data/lib/firebase/firebase.rb +53 -42
  6. data/lib/firebase/firebase_auth.rb +219 -0
  7. data/lib/firebase/firebase_facebook_helper.rb +24 -0
  8. data/lib/firebase/firebase_github_helper.rb +20 -0
  9. data/lib/firebase/firebase_twitter_helper.rb +169 -0
  10. data/lib/firebase/fquery.rb +16 -4
  11. data/lib/firebase/version.rb +2 -1
  12. data/lib/motion-firebase-auth.rb +3 -11
  13. data/lib/motion-firebase.rb +3 -1
  14. metadata +6 -19
  15. data/lib/vendor/Firebase.framework/Firebase +0 -0
  16. data/lib/vendor/Firebase.framework/Versions/A/Firebase +0 -0
  17. data/lib/vendor/Firebase.framework/Versions/A/Headers/FDataSnapshot.h +0 -146
  18. data/lib/vendor/Firebase.framework/Versions/A/Headers/FEventType.h +0 -43
  19. data/lib/vendor/Firebase.framework/Versions/A/Headers/FMutableData.h +0 -139
  20. data/lib/vendor/Firebase.framework/Versions/A/Headers/FQuery.h +0 -229
  21. data/lib/vendor/Firebase.framework/Versions/A/Headers/FTransactionResult.h +0 -50
  22. data/lib/vendor/Firebase.framework/Versions/A/Headers/Firebase.h +0 -707
  23. data/lib/vendor/Firebase.framework/build-MacOSX/Firebase.framework.bridgesupport +0 -582
  24. data/lib/vendor/Firebase.framework/build-iPhoneSimulator/Firebase.framework.bridgesupport +0 -582
  25. data/lib/vendor/FirebaseSimpleLogin.framework/FirebaseSimpleLogin +0 -0
  26. data/lib/vendor/FirebaseSimpleLogin.framework/Versions/A/FirebaseSimpleLogin +0 -0
  27. data/lib/vendor/FirebaseSimpleLogin.framework/Versions/A/Headers/FATypes.h +0 -52
  28. data/lib/vendor/FirebaseSimpleLogin.framework/Versions/A/Headers/FAUser.h +0 -97
  29. data/lib/vendor/FirebaseSimpleLogin.framework/Versions/A/Headers/FirebaseSimpleLogin.h +0 -221
  30. data/lib/vendor/FirebaseSimpleLogin.framework/build-MacOSX/FirebaseSimpleLogin.framework.bridgesupport +0 -230
  31. data/lib/vendor/FirebaseSimpleLogin.framework/build-iPhoneSimulator/FirebaseSimpleLogin.framework.bridgesupport +0 -230
@@ -1,229 +0,0 @@
1
- /*
2
- * Firebase iOS Client Library
3
- *
4
- * Copyright © 2013 Firebase - All Rights Reserved
5
- * https://www.firebase.com
6
- *
7
- * Redistribution and use in source and binary forms, with or without
8
- * modification, are permitted provided that the following conditions are met:
9
- *
10
- * 1. Redistributions of source code must retain the above copyright notice, this
11
- * list of conditions and the following disclaimer.
12
- *
13
- * 2. Redistributions in binaryform must reproduce the above copyright notice,
14
- * this list of conditions and the following disclaimer in the documentation
15
- * and/or other materials provided with the distribution.
16
- *
17
- * THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
18
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
- * EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
21
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
- */
28
-
29
- #import <Foundation/Foundation.h>
30
- #import "FEventType.h"
31
- #import "FDataSnapshot.h"
32
-
33
- typedef NSUInteger FirebaseHandle;
34
-
35
- /**
36
- * An FQuery instance represents a query over the data at a particular location.
37
- *
38
- * You create one by calling one of the query methods (queryStartingAtPriority:, queryEndingAtPriority:, etc.)
39
- * on a Firebase reference. The query methods can be chained to further specify the data you are interested in
40
- * observing
41
- */
42
- @interface FQuery : NSObject
43
-
44
-
45
- /** @name Attaching observers to read data */
46
-
47
-
48
- /**
49
- * observeEventType:withBlock: is used to listen for data changes at a particular location.
50
- * This is the primary way to read data from Firebase. Your block will be triggered
51
- * for the initial data and again whenever the data changes.
52
- *
53
- * Use removeObserverWithHandle: to stop receiving updates.
54
- *
55
- * @param eventType The type of event to listen for.
56
- * @param block The block that should be called with initial data and updates.
57
- * @return A handle used to unregister this block later using removeObserverWithHandle:
58
- */
59
- - (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block;
60
-
61
-
62
- /**
63
- * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location.
64
- * This is the primary way to read data from Firebase. Your block will be triggered
65
- * for the initial data and again whenever the data changes. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
66
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
67
- *
68
- * Use removeObserverWithHandle: to stop receiving updates.
69
- *
70
- * @param eventType The type of event to listen for.
71
- * @param block The block that should be called with initial data and updates, as well as the previous child's name.
72
- * @return A handle used to unregister this block later using removeObserverWithHandle:
73
- */
74
- - (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block;
75
-
76
-
77
- /**
78
- * observeEventType:withBlock: is used to listen for data changes at a particular location.
79
- * This is the primary way to read data from Firebase. Your block will be triggered
80
- * for the initial data and again whenever the data changes.
81
- *
82
- * The cancelBlock will be called if you will no longer receive new events due to no longer having permission.
83
- *
84
- * Use removeObserverWithHandle: to stop receiving updates.
85
- *
86
- * @param eventType The type of event to listen for.
87
- * @param block The block that should be called with initial data and updates.
88
- * @param cancelBlock The block that should be called if this client no longer has permission to receive these events
89
- * @return A handle used to unregister this block later using removeObserverWithHandle:
90
- */
91
- - (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
92
-
93
-
94
- /**
95
- * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location.
96
- * This is the primary way to read data from Firebase. Your block will be triggered
97
- * for the initial data and again whenever the data changes. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
98
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
99
- *
100
- * The cancelBlock will be called if you will no longer receive new events due to no longer having permission.
101
- *
102
- * Use removeObserverWithHandle: to stop receiving updates.
103
- *
104
- * @param eventType The type of event to listen for.
105
- * @param block The block that should be called with initial data and updates, as well as the previous child's name.
106
- * @param cancelBlock The block that should be called if this client no longer has permission to receive these events
107
- * @return A handle used to unregister this block later using removeObserverWithHandle:
108
- */
109
- - (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
110
-
111
-
112
- /**
113
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned.
114
- *
115
- * @param eventType The type of event to listen for.
116
- * @param block The block that should be called with initial data and updates.
117
- */
118
- - (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block;
119
-
120
-
121
- /**
122
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
123
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
124
- *
125
- * @param eventType The type of event to listen for.
126
- * @param block The block that should be called with initial data and updates.
127
- */
128
- - (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block;
129
-
130
-
131
- /**
132
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned.
133
- *
134
- * The cancelBlock will be called if you do not have permission to read data at this location.
135
- *
136
- * @param eventType The type of event to listen for.
137
- * @param block The block that should be called with initial data and updates.
138
- * @param cancelBlock The block that will be called if you don't have permission to access this data
139
- */
140
- - (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
141
-
142
-
143
- /**
144
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
145
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
146
- *
147
- * The cancelBlock will be called if you do not have permission to read data at this location.
148
- *
149
- * @param eventType The type of event to listen for.
150
- * @param block The block that should be called with initial data and updates.
151
- * @param cancelBlock The block that will be called if you don't have permission to access this data
152
- */
153
- - (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
154
-
155
- /** @name Detaching observers */
156
-
157
- /**
158
- * Detach a block previously attached with observeEventType:withBlock:.
159
- *
160
- * @param handle The handle returned by the call to observeEventType:withBlock: which we are trying to remove.
161
- */
162
- - (void) removeObserverWithHandle:(FirebaseHandle)handle;
163
-
164
-
165
- /**
166
- * Detach all blocks previously attached to this Firebase location with observeEventType:withBlock:
167
- */
168
- - (void) removeAllObservers;
169
-
170
-
171
- /** @name Querying and limiting */
172
-
173
-
174
- /**
175
- * queryStartingAtPriority: is used to generate a reference to a limited view of the data at this location.
176
- * The FQuery instance returned by queryStartingAtPriority: will respond to events at nodes with a priority
177
- * greater than or equal to startPriority
178
- *
179
- * @param startPriority The lower bound, inclusive, for the priority of data visible to the returned FQuery
180
- * @return An FQuery instance, limited to data with priority greater than or equal to startPriority
181
- */
182
- - (FQuery *) queryStartingAtPriority:(id)startPriority;
183
-
184
-
185
- /**
186
- * queryStartingAtPriority:andChildName: is used to generate a reference to a limited view of the data at this location.
187
- * The FQuery instance returned by queryStartingAtPriority:andChildName will respond to events at nodes with a priority
188
- * greater than startPriority, or equal to startPriority and with a name greater than or equal to childName
189
- *
190
- * @param startPriority The lower bound, inclusive, for the priority of data visible to the returned FQuery
191
- * @param childName The lower bound, inclusive, for the name of nodes with priority equal to startPriority
192
- * @return An FQuery instance, limited to data with priority greater than or equal to startPriority
193
- */
194
- - (FQuery *) queryStartingAtPriority:(id)startPriority andChildName:(NSString *)childName;
195
-
196
-
197
- /**
198
- * queryEndingAtPriority: is used to generate a reference to a limited view of the data at this location.
199
- * The FQuery instance returned by queryEndingAtPriority: will respond to events at nodes with a priority
200
- * less than or equal to startPriority and with a name greater than or equal to childName
201
- *
202
- * @param endPriority The upper bound, inclusive, for the priority of data visible to the returned FQuery
203
- * @return An FQuery instance, limited to data with priority less than or equal to endPriority
204
- */
205
- - (FQuery *) queryEndingAtPriority:(id)endPriority;
206
-
207
-
208
- /**
209
- * queryEndingAtPriority:andChildName: is used to generate a reference to a limited view of the data at this location.
210
- * The FQuery instance returned by queryEndingAtPriority:andChildNAme will respond to events at nodes with a priority
211
- * less than endPriority, or equal to endPriority and with a name less than or equal to childName
212
- *
213
- * @param endPriority The upper bound, inclusive, for the priority of data visible to the returned FQuery
214
- * @param childName The upper bound, inclusive, for the name of nodes with priority equal to endPriority
215
- * @return An FQuery instance, limited to data with priority less than endPriority or equal to endPriority and with a name less than or equal to childName
216
- */
217
- - (FQuery *) queryEndingAtPriority:(id)endPriority andChildName:(NSString *)childName;
218
-
219
-
220
- /**
221
- * queryLimitedToNumberOfChildren: is used to generate a reference to a limited view of the data at this location.
222
- * The FQuery instance returned by queryLimitedToNumberOfChildren: will respond to events at from at most limit child nodes
223
- *
224
- * @param limit The upper bound, inclusive, for the number of child nodes to receive events for
225
- * @return An FQuery instance, limited to at most limit child nodes.
226
- */
227
- - (FQuery *) queryLimitedToNumberOfChildren:(NSUInteger)limit;
228
-
229
- @end
@@ -1,50 +0,0 @@
1
- /*
2
- * Firebase iOS Client Library
3
- *
4
- * Copyright © 2013 Firebase - All Rights Reserved
5
- * https://www.firebase.com
6
- *
7
- * Redistribution and use in source and binary forms, with or without
8
- * modification, are permitted provided that the following conditions are met:
9
- *
10
- * 1. Redistributions of source code must retain the above copyright notice, this
11
- * list of conditions and the following disclaimer.
12
- *
13
- * 2. Redistributions in binaryform must reproduce the above copyright notice,
14
- * this list of conditions and the following disclaimer in the documentation
15
- * and/or other materials provided with the distribution.
16
- *
17
- * THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
18
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
- * EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
21
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
- */
28
-
29
- #import <Foundation/Foundation.h>
30
- #import "FMutableData.h"
31
-
32
- @interface FTransactionResult : NSObject
33
-
34
- /**
35
- * Used for runTransactionBlock:. Indicates that the new value should be saved at this location
36
- *
37
- * @param value An FMutableData instance containing the new value to be set
38
- * @return An FTransactionResult instance that can be used as a return value from the block given to runTransactionBlock:
39
- */
40
- + (FTransactionResult *) successWithValue:(FMutableData *)value;
41
-
42
-
43
- /**
44
- * Used for runTransactionBlock:. Indicates that the current transaction should no longer proceed.
45
- *
46
- * @return An FTransactionResult instance that can be used as a return value from the block given to runTransactionBlock:
47
- */
48
- + (FTransactionResult *) abort;
49
-
50
- @end
@@ -1,707 +0,0 @@
1
- /*
2
- * Firebase iOS Client Library
3
- *
4
- * Copyright © 2013 Firebase - All Rights Reserved
5
- * https://www.firebase.com
6
- *
7
- * Redistribution and use in source and binary forms, with or without
8
- * modification, are permitted provided that the following conditions are met:
9
- *
10
- * 1. Redistributions of source code must retain the above copyright notice, this
11
- * list of conditions and the following disclaimer.
12
- *
13
- * 2. Redistributions in binaryform must reproduce the above copyright notice,
14
- * this list of conditions and the following disclaimer in the documentation
15
- * and/or other materials provided with the distribution.
16
- *
17
- * THIS SOFTWARE IS PROVIDED BY FIREBASE AS IS AND ANY EXPRESS OR
18
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
20
- * EVENT SHALL FIREBASE BE LIABLE FOR ANY DIRECT,
21
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
- */
28
-
29
-
30
- #import <Foundation/Foundation.h>
31
- #import "FQuery.h"
32
- #import "FDataSnapshot.h"
33
- #import "FMutableData.h"
34
- #import "FTransactionResult.h"
35
-
36
-
37
- /**
38
- * A Firebase reference represents a particular location in your Firebase
39
- * and can be used for reading or writing data to that Firebase location.
40
- *
41
- * This class is the starting point for all Firebase operations. After you've
42
- * initialized it with initWithUrl: you can use it
43
- * to read data (ie. observeEventType:withBlock:), write data (ie. setValue:), and to create new
44
- * Firebase references (ie. child:).
45
- */
46
- @interface Firebase : FQuery
47
-
48
-
49
- /** @name Initializing a Firebase object */
50
-
51
- /**
52
- * Initialize this Firebase reference with an absolute URL.
53
- *
54
- * @param url The Firebase URL (ie: https://SampleChat.firebaseIO-demo.com)
55
- */
56
- - (id)initWithUrl:(NSString *)url;
57
-
58
- /** @name Getting references to children locations */
59
-
60
- /**
61
- * Get a Firebase reference for the location at the specified relative path.
62
- * The relative path can either be a simple child name (e.g. 'fred') or a
63
- * deeper slash-separated path (e.g. 'fred/name/first').
64
- *
65
- * @param pathString A relative path from this location to the desired child location.
66
- * @return A Firebase reference for the specified relative path.
67
- */
68
- - (Firebase *) childByAppendingPath:(NSString *)pathString;
69
-
70
-
71
- /**
72
- * childByAutoId generates a new child location using a unique name and returns a
73
- * Firebase reference to it. This is useful when the children of a Firebase
74
- * location represent a list of items.
75
- *
76
- * The unique name generated by childByAutoId: is prefixed with a client-generated
77
- * timestamp so that the resulting list will be chronologically-sorted.
78
- *
79
- * @return A Firebase reference for the generated location.
80
- */
81
- - (Firebase *) childByAutoId;
82
-
83
-
84
- /** @name Writing data */
85
-
86
- /*! Write data to this Firebase location.
87
-
88
- This will overwrite any data at this location and all child locations.
89
-
90
- Data types that can be set are:
91
-
92
- - NSString -- @"Hello World"
93
- - NSNumber (also includes boolean) -- @YES, @43, @4.333
94
- - NSDictionary -- @{@"key": @"value", @"nested": @{@"another": @"value"} }
95
- - NSArray
96
-
97
- The effect of the write will be visible immediately and the corresponding
98
- events will be triggered. Synchronization of the data to the Firebase
99
- servers will also be started.
100
-
101
- Passing null for the new value is equivalent to calling remove:;
102
- all data at this location or any child location will be deleted.
103
-
104
- Note that setValue: will remove any priority stored at this location, so if priority
105
- is meant to be preserved, you should use setValue:andPriority: instead.
106
-
107
-
108
- **Server Values** - Placeholder values you may write into Firebase as a value or priority
109
- that will automatically be populated by the Firebase Server.
110
-
111
- - kFirebaseServerValueTimestamp - The number of milliseconds since the Unix epoch
112
-
113
-
114
- @param value The value to be written.
115
- */
116
- - (void) setValue:(id)value;
117
-
118
-
119
- #define kFirebaseServerValueTimestamp @{ @".sv": @"timestamp" }
120
-
121
-
122
- /**
123
- * The same as setValue: with a block that gets triggered after the write operation has
124
- * been committed to the Firebase servers.
125
- *
126
- * @param value The value to be written.
127
- * @param block The block to be called after the write has been committed to the Firebase servers.
128
- */
129
- - (void) setValue:(id)value withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
130
-
131
-
132
- /**
133
- * The same as setValue: with an additional priority to be attached to the data being written.
134
- * Priorities are used to order items.
135
- *
136
- * @param value The value to be written.
137
- * @param priority The priority to be attached to that data.
138
- */
139
- - (void) setValue:(id)value andPriority:(id)priority;
140
-
141
-
142
- /**
143
- * The same as setValue:andPriority: with a block that gets triggered after the write operation has
144
- * been committed to the Firebase servers.
145
- *
146
- * @param value The value to be written.
147
- * @param priority The priority to be attached to that data.
148
- * @param block The block to be called after the write has been committed to the Firebase servers.
149
- */
150
- - (void) setValue:(id)value andPriority:(id)priority withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
151
-
152
-
153
- /**
154
- * Remove the data at this Firebase location. Any data at child locations will also be deleted.
155
- *
156
- * The effect of the delete will be visible immediately and the corresponding events
157
- * will be triggered. Synchronization of the delete to the Firebase servers will
158
- * also be started.
159
- *
160
- * remove: is equivalent to calling setValue:nil
161
- */
162
- - (void) removeValue;
163
-
164
-
165
- /**
166
- * The same as remove: with a block that gets triggered after the remove operation has
167
- * been committed to the Firebase servers.
168
- *
169
- * @param block The block to be called after the remove has been committed to the Firebase servers.
170
- */
171
- - (void) removeValueWithCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
172
-
173
- /**
174
- * Set a priority for the data at this Firebase location.
175
- * Priorities can be used to provide a custom ordering for the children at a location
176
- * (if no priorities are specified, the children are ordered by name).
177
- *
178
- * You cannot set a priority on an empty location. For this reason
179
- * setValue:andPriority: should be used when setting initial data with a specific priority
180
- * and setPriority: should be used when updating the priority of existing data.
181
- *
182
- * Children are sorted based on this priority using the following rules:
183
- *
184
- * Children with no priority come first.
185
- * Children with a number as their priority come next. They are sorted numerically by priority (small to large).
186
- * Children with a string as their priority come last. They are sorted lexicographically by priority.
187
- * Whenever two children have the same priority (including no priority), they are sorted by name. Numeric
188
- * names come first (sorted numerically), followed by the remaining names (sorted lexicographically).
189
- *
190
- * Note that priorities are parsed and ordered as IEEE 754 double-precision floating-point numbers.
191
- * Names are always stored as strings and are treated as numbers only when they can be parsed as a
192
- * 32-bit integer
193
- *
194
- * @param priority The priority to set at the specified location.
195
- */
196
- - (void) setPriority:(id)priority;
197
-
198
-
199
- /**
200
- * The same as setPriority: with a block block that is called once the priority has
201
- * been committed to the Firebase servers.
202
- *
203
- * @param priority The priority to set at the specified location.
204
- * @param block The block that is triggered after the priority has been written on the servers.
205
- */
206
- - (void) setPriority:(id)priority withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
207
-
208
- /**
209
- * Update changes the values of the keys specified in the dictionary without overwriting other
210
- * keys at this location.
211
- *
212
- * @param values A dictionary of the keys to change and their new values
213
- */
214
- - (void) updateChildValues:(NSDictionary *)values;
215
-
216
- /**
217
- * The same as update: with a block block that is called once the update has been committed to the
218
- * Firebase servers
219
- *
220
- * @param values A dictionary of the keys to change and their new values
221
- * @param block The block that is triggered after the update has been written on the Firebase servers
222
- */
223
- - (void) updateChildValues:(NSDictionary *)values withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
224
-
225
-
226
- /** @name Attaching observers to read data */
227
-
228
- /*! observeEventType:withBlock: is used to listen for data changes at a particular location.
229
-
230
- This is the primary way to read data from Firebase. Your block will be triggered
231
- for the initial data and again whenever the data changes.
232
-
233
- Use removeObserverWithHandle: to stop receiving updates.
234
-
235
- Supported events types for all realtime observers are specified in FEventType as:
236
-
237
- typedef enum {
238
- FEventTypeChildAdded, // 0, fired when a new child node is added to a location
239
- FEventTypeChildRemoved, // 1, fired when a child node is removed from a location
240
- FEventTypeChildChanged, // 2, fired when a child node at a location changes
241
- FEventTypeChildMoved, // 3, fired when a child node moves relative to the other child nodes at a location
242
- FEventTypeValue // 4, fired when any data changes at a location and, recursively, any children
243
- } FEventType;
244
-
245
- @param eventType The type of event to listen for.
246
- @param block The block that should be called with initial data and updates as a FDataSnapshot.
247
- @return A handle used to unregister this block later using removeObserverWithHandle:
248
- */
249
- - (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block;
250
-
251
-
252
- /**
253
- * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location.
254
- * This is the primary way to read data from Firebase. Your block will be triggered
255
- * for the initial data and again whenever the data changes. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
256
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
257
- *
258
- * Use removeObserverWithHandle: to stop receiving updates.
259
- *
260
- * @param eventType The type of event to listen for.
261
- * @param block The block that should be called with initial data and updates as a FDataSnapshot, as well as the previous child's name.
262
- * @return A handle used to unregister this block later using removeObserverWithHandle:
263
- */
264
- - (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block;
265
-
266
-
267
- /**
268
- * observeEventType:withBlock: is used to listen for data changes at a particular location.
269
- * This is the primary way to read data from Firebase. Your block will be triggered
270
- * for the initial data and again whenever the data changes.
271
- *
272
- * The cancelBlock will be called if you will no longer receive new events due to no longer having permission.
273
- *
274
- * Use removeObserverWithHandle: to stop receiving updates.
275
- *
276
- * @param eventType The type of event to listen for.
277
- * @param block The block that should be called with initial data and updates as a FDataSnapshot.
278
- * @param cancelBlock The block that should be called if this client no longer has permission to receive these events
279
- * @return A handle used to unregister this block later using removeObserverWithHandle:
280
- */
281
- - (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
282
-
283
-
284
- /**
285
- * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location.
286
- * This is the primary way to read data from Firebase. Your block will be triggered
287
- * for the initial data and again whenever the data changes. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
288
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
289
- *
290
- * The cancelBlock will be called if you will no longer receive new events due to no longer having permission.
291
- *
292
- * Use removeObserverWithHandle: to stop receiving updates.
293
- *
294
- * @param eventType The type of event to listen for.
295
- * @param block The block that should be called with initial data and updates as a FDataSnapshot, as well as the previous child's name.
296
- * @param cancelBlock The block that should be called if this client no longer has permission to receive these events
297
- * @return A handle used to unregister this block later using removeObserverWithHandle:
298
- */
299
- - (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
300
-
301
-
302
- /**
303
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned.
304
- *
305
- * @param eventType The type of event to listen for.
306
- * @param block The block that should be called with initial data and updates as a FDataSnapshot.
307
- */
308
- - (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block;
309
-
310
-
311
- /**
312
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
313
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
314
- *
315
- * @param eventType The type of event to listen for.
316
- * @param block The block that should be called with initial data and updates as a FDataSnapshot, as well as the previous child's name.
317
- */
318
- - (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block;
319
-
320
-
321
- /**
322
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned.
323
- *
324
- * The cancelBlock will be called if you do not have permission to read data at this location.
325
- *
326
- * @param eventType The type of event to listen for.
327
- * @param block The block that should be called with initial data and updates as a FDataSnapshot.
328
- * @param cancelBlock The block that will be called if you don't have permission to access this data
329
- */
330
- - (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
331
-
332
-
333
- /**
334
- * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and
335
- * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order.
336
- *
337
- * The cancelBlock will be called if you do not have permission to read data at this location.
338
- *
339
- * @param eventType The type of event to listen for.
340
- * @param block The block that should be called with initial data and updates as a FDataSnapshot, as well as the previous child's name.
341
- * @param cancelBlock The block that will be called if you don't have permission to access this data
342
- */
343
- - (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
344
-
345
- /** @name Detaching observers */
346
-
347
- /**
348
- * Detach a block previously attached with observeEventType:withBlock:.
349
- *
350
- * @param handle The handle returned by the call to observeEventType:withBlock: which we are trying to remove.
351
- */
352
- - (void) removeObserverWithHandle:(FirebaseHandle)handle;
353
-
354
-
355
- /**
356
- * Detach all blocks previously attached to this Firebase location with observeEventType:withBlock:
357
- */
358
- - (void) removeAllObservers;
359
-
360
- /** @name Querying and limiting */
361
-
362
- /**
363
- * queryStartingAtPriority: is used to generate a reference to a limited view of the data at this location.
364
- * The FQuery instance returned by queryStartingAtPriority: will respond to events at nodes with a priority
365
- * greater than or equal to startPriority
366
- *
367
- * @param startPriority The lower bound, inclusive, for the priority of data visible to the returned FQuery
368
- * @return An FQuery instance, limited to data with priority greater than or equal to startPriority
369
- */
370
- - (FQuery *) queryStartingAtPriority:(id)startPriority;
371
-
372
-
373
- /**
374
- * queryStartingAtPriority:andChildName: is used to generate a reference to a limited view of the data at this location.
375
- * The FQuery instance returned by queryStartingAtPriority:andChildName will respond to events at nodes with a priority
376
- * greater than startPriority, or equal to startPriority and with a name greater than or equal to childName
377
- *
378
- * @param startPriority The lower bound, inclusive, for the priority of data visible to the returned FQuery
379
- * @param childName The lower bound, inclusive, for the name of nodes with priority equal to startPriority
380
- * @return An FQuery instance, limited to data with priority greater than or equal to startPriority
381
- */
382
- - (FQuery *) queryStartingAtPriority:(id)startPriority andChildName:(NSString *)childName;
383
-
384
-
385
- /**
386
- * queryEndingAtPriority: is used to generate a reference to a limited view of the data at this location.
387
- * The FQuery instance returned by queryEndingAtPriority: will respond to events at nodes with a priority
388
- * less than or equal to startPriority and with a name greater than or equal to childName
389
- *
390
- * @param endPriority The upper bound, inclusive, for the priority of data visible to the returned FQuery
391
- * @return An FQuery instance, limited to data with priority less than or equal to endPriority
392
- */
393
- - (FQuery *) queryEndingAtPriority:(id)endPriority;
394
-
395
-
396
- /**
397
- * queryEndingAtPriority:andChildName: is used to generate a reference to a limited view of the data at this location.
398
- * The FQuery instance returned by queryEndingAtPriority:andChildNAme will respond to events at nodes with a priority
399
- * less than endPriority, or equal to endPriority and with a name less than or equal to childName
400
- *
401
- * @param endPriority The upper bound, inclusive, for the priority of data visible to the returned FQuery
402
- * @param childName The upper bound, inclusive, for the name of nodes with priority equal to endPriority
403
- * @return An FQuery instance, limited to data with priority less than endPriority or equal to endPriority and with a name less than or equal to childName
404
- */
405
- - (FQuery *) queryEndingAtPriority:(id)endPriority andChildName:(NSString *)childName;
406
-
407
-
408
-
409
- /**
410
- * queryLimitedToNumberOfChildren: is used to generate a reference to a limited view of the data at this location.
411
- * The FQuery instance returned by queryLimitedToNumberOfChildren: will respond to events at from at most limit child nodes
412
- *
413
- * @param limit The upper bound, inclusive, for the number of child nodes to receive events for
414
- * @return An FQuery instance, limited to at most limit child nodes.
415
- */
416
- - (FQuery *) queryLimitedToNumberOfChildren:(NSUInteger)limit;
417
-
418
- /** @name Managing presence */
419
-
420
- /**
421
- * Ensure the data at this location is set to the specified value when
422
- * the client is disconnected (due to closing the browser, navigating
423
- * to a new page, or network issues).
424
- *
425
- * onDisconnectSetValue: is especially useful for implementing "presence" systems,
426
- * where a value should be changed or cleared when a user disconnects
427
- * so that he appears "offline" to other users.
428
- *
429
- * @param value The value to be set after the connection is lost.
430
- */
431
- - (void) onDisconnectSetValue:(id)value;
432
-
433
-
434
- /**
435
- * Ensure the data at this location is set to the specified value when
436
- * the client is disconnected (due to closing the browser, navigating
437
- * to a new page, or network issues).
438
- *
439
- * The completion block will be triggered when the operation has been successfully queued up on the Firebase servers
440
- *
441
- * @param value The value to be set after the connection is lost.
442
- * @param block Block to be triggered when the operation has been queued up on the Firebase servers
443
- */
444
- - (void) onDisconnectSetValue:(id)value withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
445
-
446
-
447
- /**
448
- * Ensure the data at this location is set to the specified value and priority when
449
- * the client is disconnected (due to closing the browser, navigating
450
- * to a new page, or network issues).
451
- *
452
- * @param value The value to be set after the connection is lost.
453
- * @param priority The priority to be set after the connection is lost.
454
- */
455
- - (void) onDisconnectSetValue:(id)value andPriority:(id)priority;
456
-
457
-
458
- /**
459
- * Ensure the data at this location is set to the specified value and priority when
460
- * the client is disconnected (due to closing the browser, navigating
461
- * to a new page, or network issues).
462
- *
463
- * The completion block will be triggered when the operation has been successfully queued up on the Firebase servers
464
- *
465
- * @param value The value to be set after the connection is lost.
466
- * @param priority The priority to be set after the connection is lost.
467
- * @param block Block to be triggered when the operation has been queued up on the Firebase servers
468
- */
469
- - (void) onDisconnectSetValue:(id)value andPriority:(id)priority withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
470
-
471
-
472
- /**
473
- * Ensure the data at this location is removed when
474
- * the client is disconnected (due to closing the app, navigating
475
- * to a new page, or network issues).
476
- *
477
- * onDisconnectRemoveValue is especially useful for implementing "presence" systems.
478
- */
479
- - (void) onDisconnectRemoveValue;
480
-
481
-
482
- /**
483
- * Ensure the data at this location is removed when
484
- * the client is disconnected (due to closing the app, navigating
485
- * to a new page, or network issues).
486
- *
487
- * onDisconnectRemoveValueWithCompletionBlock: is especially useful for implementing "presence" systems.
488
- *
489
- * @param block Block to be triggered when the operation has been queued up on the Firebase servers
490
- */
491
- - (void) onDisconnectRemoveValueWithCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
492
-
493
-
494
-
495
- /**
496
- * Ensure the data has the specified child values updated when
497
- * the client is disconnected (due to closing the browser, navigating
498
- * to a new page, or network issues).
499
- *
500
- *
501
- * @param values A dictionary of child node names and the values to set them to after the connection is lost.
502
- */
503
- - (void) onDisconnectUpdateChildValues:(NSDictionary *)values;
504
-
505
-
506
- /**
507
- * Ensure the data has the specified child values updated when
508
- * the client is disconnected (due to closing the browser, navigating
509
- * to a new page, or network issues).
510
- *
511
- *
512
- * @param values A dictionary of child node names and the values to set them to after the connection is lost.
513
- * @param block A block that will be called once the operation has been queued up on the Firebase servers
514
- */
515
- - (void) onDisconnectUpdateChildValues:(NSDictionary *)values withCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
516
-
517
-
518
- /**
519
- * Cancel any operations that are set to run on disconnect. If you previously called onDisconnectSetValue:,
520
- * onDisconnectRemoveValue:, or onDisconnectUpdateChildValues:, and no longer want the values updated when the
521
- * connection is lost, call cancelDisconnectOperations:
522
- */
523
- - (void) cancelDisconnectOperations;
524
-
525
-
526
- /**
527
- * Cancel any operations that are set to run on disconnect. If you previously called onDisconnectSetValue:,
528
- * onDisconnectRemoveValue:, or onDisconnectUpdateChildValues:, and no longer want the values updated when the
529
- * connection is lost, call cancelDisconnectOperations:
530
- *
531
- * @param block A block that will be triggered once the Firebase servers have acknowledged the cancel request.
532
- */
533
- - (void) cancelDisconnectOperationsWithCompletionBlock:(void (^)(NSError* error, Firebase* ref))block;
534
-
535
-
536
- /** @name Authenticating */
537
-
538
- /**
539
- * Authenticate access to this Firebase using the provided credentials. The completion block will be called with
540
- * the results of the authenticated attempt, and the cancelBlock will be called if the credentials become invalid
541
- * at some point after authentication has succeeded.
542
- *
543
- * @param credential The Firebase authentication JWT generated by a secure code on a remote server.
544
- * @param block This block will be called with the results of the authentication attempt
545
- * @param cancelBlock This block will be called if at any time in the future the credentials become invalid
546
- */
547
- - (void) authWithCredential:(NSString *)credential withCompletionBlock:(void (^) (NSError* error, id data))block withCancelBlock:(void (^)(NSError* error))cancelBlock;
548
-
549
-
550
- /**
551
- * Removes any credentials associated with this Firebase
552
- */
553
- - (void) unauth;
554
-
555
- /**
556
- * Removes any credentials associated with this Firebase. The callback block will be triggered after this operation
557
- * has been acknowledged by the Firebase servers.
558
- */
559
- - (void) unauthWithCompletionBlock:(void (^)(NSError* error))block;
560
-
561
-
562
- /** @name Manual Connection Management */
563
-
564
- /**
565
- * Manually disconnect the Firebase client from the server and disable automatic reconnection.
566
- *
567
- * The Firebase client automatically maintains a persistent connection to the Firebase server,
568
- * which will remain active indefinitely and reconnect when disconnected. However, the goOffline( )
569
- * and goOnline( ) methods may be used to manually control the client connection in cases where
570
- * a persistent connection is undesirable.
571
- *
572
- * While offline, the Firebase client will no longer receive data updates from the server. However,
573
- * all Firebase operations performed locally will continue to immediately fire events, allowing
574
- * your application to continue behaving normally. Additionally, each operation performed locally
575
- * will automatically be queued and retried upon reconnection to the Firebase server.
576
- *
577
- * To reconnect to the Firebase server and begin receiving remote events, see goOnline( ).
578
- * Once the connection is reestablished, the Firebase client will transmit the appropriate data
579
- * and fire the appropriate events so that your client "catches up" automatically.
580
- *
581
- * Note: Invoking this method will impact all Firebase connections.
582
- */
583
- + (void) goOffline;
584
-
585
- /**
586
- * Manually reestablish a connection to the Firebase server and enable automatic reconnection.
587
- *
588
- * The Firebase client automatically maintains a persistent connection to the Firebase server,
589
- * which will remain active indefinitely and reconnect when disconnected. However, the goOffline( )
590
- * and goOnline( ) methods may be used to manually control the client connection in cases where
591
- * a persistent connection is undesirable.
592
- *
593
- * This method should be used after invoking goOffline( ) to disable the active connection.
594
- * Once reconnected, the Firebase client will automatically transmit the proper data and fire
595
- * the appropriate events so that your client "catches up" automatically.
596
- *
597
- * To disconnect from the Firebase server, see goOffline( ).
598
- *
599
- * Note: Invoking this method will impact all Firebase connections.
600
- */
601
- + (void) goOnline;
602
-
603
-
604
- /** @name Transactions */
605
-
606
- /**
607
- * Performs an optimistic-concurrency transactional update to the data at this location. Your block will be called with an FMutableData
608
- * instance that contains the current data at this location. Your block should update this data to the value you
609
- * wish to write to this location, and then return an instance of FTransactionResult with the new data.
610
- *
611
- * If, when the operation reaches the server, it turns out that this client had stale data, your block will be run
612
- * again with the latest data from the server.
613
- *
614
- * When your block is run, you may decide to abort the transaction by return [FTransactionResult abort].
615
- *
616
- * @param block This block receives the current data at this location and must return an instance of FTransactionResult
617
- */
618
- - (void) runTransactionBlock:(FTransactionResult* (^) (FMutableData* currentData))block;
619
-
620
-
621
- /**
622
- * Performs an optimistic-concurrency transactional update to the data at this location. Your block will be called with an FMutableData
623
- * instance that contains the current data at this location. Your block should update this data to the value you
624
- * wish to write to this location, and then return an instance of FTransactionResult with the new data.
625
- *
626
- * If, when the operation reaches the server, it turns out that this client had stale data, your block will be run
627
- * again with the latest data from the server.
628
- *
629
- * When your block is run, you may decide to abort the transaction by return [FTransactionResult abort].
630
- *
631
- * @param block This block receives the current data at this location and must return an instance of FTransactionResult
632
- * @param completionBlock This block will be triggered once the transaction is complete, whether it was successful or not. It will indicate if there was an error, whether or not the data was committed, and what the current value of the data at this location is.
633
- */
634
- - (void) runTransactionBlock:(FTransactionResult* (^) (FMutableData* currentData))block andCompletionBlock:(void (^) (NSError* error, BOOL committed, FDataSnapshot* snapshot))completionBlock;
635
-
636
-
637
-
638
- /**
639
- * Performs an optimistic-concurrency transactional update to the data at this location. Your block will be called with an FMutableData
640
- * instance that contains the current data at this location. Your block should update this data to the value you
641
- * wish to write to this location, and then return an instance of FTransactionResult with the new data.
642
- *
643
- * If, when the operation reaches the server, it turns out that this client had stale data, your block will be run
644
- * again with the latest data from the server.
645
- *
646
- * When your block is run, you may decide to abort the transaction by return [FTransactionResult abort].
647
- *
648
- * Since your block may be run multiple times, this client could see several immediate states that don't exist on the server. You can suppress those immediate states until the server confirms the final state of the transaction.
649
- *
650
- * @param block This block receives the current data at this location and must return an instance of FTransactionResult
651
- * @param completionBlock This block will be triggered once the transaction is complete, whether it was successful or not. It will indicate if there was an error, whether or not the data was committed, and what the current value of the data at this location is.
652
- * @param localEvents Set this to NO to suppress events raised for intermediate states, and only get events based on the final state of the transaction.
653
- */
654
- - (void) runTransactionBlock:(FTransactionResult* (^) (FMutableData* currentData))block andCompletionBlock:(void (^) (NSError* error, BOOL committed, FDataSnapshot* snapshot))completionBlock withLocalEvents:(BOOL)localEvents;
655
-
656
-
657
- /** @name Retrieving String Representation */
658
-
659
- /**
660
- * Gets the absolute URL of this Firebase location.
661
- *
662
- * @return The absolute URL of the referenced Firebase location.
663
- */
664
- - (NSString *) description;
665
-
666
- /** @name Properties */
667
-
668
- /**
669
- * Get a Firebase reference for the parent location.
670
- * If this instance refers to the root of your Firebase, it has no parent,
671
- * and therefore parent( ) will return null.
672
- *
673
- * @return A Firebase reference for the parent location.
674
- */
675
- @property (strong, readonly, nonatomic) Firebase* parent;
676
-
677
-
678
- /**
679
- * Get a Firebase reference for the root location
680
- *
681
- * @return a new Firebase reference to root location.
682
- */
683
- @property (strong, readonly, nonatomic) Firebase* root;
684
-
685
-
686
- /**
687
- * Gets last token in a Firebase location (e.g. 'fred' in https://SampleChat.firebaseIO-demo.com/users/fred)
688
- *
689
- * @return The name of the location this reference points to.
690
- */
691
- @property (strong, readonly, nonatomic) NSString* name;
692
-
693
- /** @name Global configuration and settings */
694
-
695
- /** Set the default dispatch queue for event blocks.
696
- *
697
- * @param queue The queue to set as the default for running blocks for all Firebase event types.
698
- */
699
- + (void) setDispatchQueue:(dispatch_queue_t)queue;
700
-
701
- /** Retrieve the Firebase SDK version. */
702
- + (NSString *) sdkVersion;
703
-
704
- + (void) setLoggingEnabled:(BOOL)enabled;
705
-
706
- + (void) setOption:(NSString*)option to:(id)value;
707
- @end