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

Method update

packages/firebase-database/index.android.ts:124–143  ·  view source on GitHub ↗
(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void)

Source from the content-addressed store, hash-verified

122 });
123 }
124 update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void> {
125 return new Promise((resolve, reject) => {
126 NSOnDisconnect().update(
127 this.native,
128 // should auto marshall ?
129 values as any,
130 new org.nativescript.firebase.database.FirebaseDatabase.Callback<java.lang.Void>({
131 onError(error) {
132 const err = FirebaseError.fromNative(error);
133 onComplete?.(err);
134 reject(err);
135 },
136 onSuccess(value) {
137 onComplete?.(null);
138 resolve();
139 },
140 })
141 );
142 });
143 }
144}
145
146export class Query implements IQuery {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected