File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,14 @@ - (void)terminateWithCompletion:(nullable void (^)(NSError *_Nullable error))com
309
309
[self terminateInternalWithCompletion: completion];
310
310
}
311
311
312
+ - (id <FIRListenerRegistration>)addSnapshotsInSyncListener : (void (^)(void ))listener {
313
+ std::unique_ptr<core::EventListener<Empty>> eventListener =
314
+ core::EventListener<Empty>::Create ([listener](const StatusOr<Empty> &v) { listener (); });
315
+ std::unique_ptr<ListenerRegistration> result =
316
+ _firestore->AddSnapshotsInSyncListener (std::move (eventListener));
317
+ return [[FSTListenerRegistration alloc ] initWithRegistration: std: :move (result)];
318
+ }
319
+
312
320
@end
313
321
314
322
@implementation FIRFirestore (Internal)
@@ -337,14 +345,6 @@ - (void)terminateInternalWithCompletion:(nullable void (^)(NSError *_Nullable er
337
345
_firestore->Terminate (util::MakeCallback (completion));
338
346
}
339
347
340
- - (id <FIRListenerRegistration>)addSnapshotsInSyncListener : (void (^)(void ))listener {
341
- std::unique_ptr<core::EventListener<Empty>> eventListener =
342
- core::EventListener<Empty>::Create ([listener](const StatusOr<Empty> &v) { listener (); });
343
- std::unique_ptr<ListenerRegistration> result =
344
- _firestore->AddSnapshotsInSyncListener (std::move (eventListener));
345
- return [[FSTListenerRegistration alloc ] initWithRegistration: std: :move (result)];
346
- }
347
-
348
348
@end
349
349
350
350
NS_ASSUME_NONNULL_END
You can’t perform that action at this time.
0 commit comments