MCPcopy Create free account
hub / github.com/NativeScript/firebase / onComplete

Method onComplete

packages/firebase-database/index.android.ts:518–531  ·  view source on GitHub ↗
(error: com.google.firebase.database.DatabaseError, commited: boolean, snapshot: com.google.firebase.database.DataSnapshot)

Source from the content-addressed store, hash-verified

516 return serializeItems(newData, true);
517 },
518 onComplete(error: com.google.firebase.database.DatabaseError, commited: boolean, snapshot: com.google.firebase.database.DataSnapshot): void {
519 const ss = DataSnapshot.fromNative(snapshot);
520 if (error) {
521 const err = FirebaseError.fromNative(error);
522 onComplete?.(err, commited, ss);
523 reject(err);
524 } else {
525 onComplete?.(null, commited, ss);
526 resolve({
527 commited,
528 snapshot: ss,
529 });
530 }
531 },
532 })
533 );
534 });

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected