lib/vendor/Firebase.framework/Versions/A/Headers/FQuery.h in motion-firebase-2.0.1 vs lib/vendor/Firebase.framework/Versions/A/Headers/FQuery.h in motion-firebase-2.0.7

- old
+ new

@@ -86,11 +86,11 @@ * @param eventType The type of event to listen for. * @param block The block that should be called with initial data and updates. * @param cancelBlock The block that should be called if this client no longer has permission to receive these events * @return A handle used to unregister this block later using removeObserverWithHandle: */ -- (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(void))cancelBlock; +- (FirebaseHandle) observeEventType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(NSError* error))cancelBlock; /** * observeEventType:andPreviousSiblingWithBlock: is used to listen for data changes at a particular location. * This is the primary way to read data from Firebase. Your block will be triggered @@ -104,11 +104,11 @@ * @param eventType The type of event to listen for. * @param block The block that should be called with initial data and updates, as well as the previous child's name. * @param cancelBlock The block that should be called if this client no longer has permission to receive these events * @return A handle used to unregister this block later using removeObserverWithHandle: */ -- (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(void))cancelBlock; +- (FirebaseHandle) observeEventType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(NSError* error))cancelBlock; /** * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. * @@ -135,11 +135,11 @@ * * @param eventType The type of event to listen for. * @param block The block that should be called with initial data and updates. * @param cancelBlock The block that will be called if you don't have permission to access this data */ -- (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(void))cancelBlock; +- (void) observeSingleEventOfType:(FEventType)eventType withBlock:(void (^)(FDataSnapshot* snapshot))block withCancelBlock:(void (^)(NSError* error))cancelBlock; /** * This is equivalent to observeEventType:withBlock:, except the block is immediately canceled after the initial data is returned. In addition, for FEventTypeChildAdded, FEventTypeChildMoved, and * FEventTypeChildChanged events, your block will be passed the name of the previous node by priority order. @@ -148,10 +148,10 @@ * * @param eventType The type of event to listen for. * @param block The block that should be called with initial data and updates. * @param cancelBlock The block that will be called if you don't have permission to access this data */ -- (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(void))cancelBlock; +- (void) observeSingleEventOfType:(FEventType)eventType andPreviousSiblingNameWithBlock:(void (^)(FDataSnapshot* snapshot, NSString* prevName))block withCancelBlock:(void (^)(NSError* error))cancelBlock; /** @name Detaching observers */ /** * Detach a block previously attached with observeEventType:withBlock:.