MCPcopy Index your code
hub / github.com/NativeScript/firebase / onTransaction

Method onTransaction

packages/firebase-firestore/index.android.ts:1606–1616  ·  view source on GitHub ↗
(transaction: com.google.firebase.firestore.Transaction, returnValue: androidx.lifecycle.MutableLiveData<any>, lock: java.util.concurrent.CountDownLatch)

Source from the content-addressed store, hash-verified

1604 this.native,
1605 new org.nativescript.firebase.firestore.FirebaseFirestore.TransactionCallback({
1606 onTransaction(transaction: com.google.firebase.firestore.Transaction, returnValue: androidx.lifecycle.MutableLiveData<any>, lock: java.util.concurrent.CountDownLatch) {
1607 updateFunction(Transaction.fromNative(transaction))
1608 .then((value) => {
1609 returnValue.postValue(value?.native || value || null);
1610 lock.countDown();
1611 })
1612 .catch((e) => {
1613 returnValue.postValue(null);
1614 lock.countDown();
1615 });
1616 },
1617 }),
1618 new org.nativescript.firebase.firestore.FirebaseFirestore.Callback<any>({
1619 onSuccess(param0) {

Callers

nothing calls this directly

Calls 2

thenMethod · 0.45
fromNativeMethod · 0.45

Tested by

no test coverage detected