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

Method setWithPriority

packages/firebase-database/index.ios.ts:142–155  ·  view source on GitHub ↗
(value: any, priority: string | number, onComplete?: (error: FirebaseError) => void)

Source from the content-addressed store, hash-verified

140 }
141
142 setWithPriority(value: any, priority: string | number, onComplete?: (error: FirebaseError) => void): Promise<void> {
143 return new Promise((resolve, reject) => {
144 this.native.onDisconnectSetValueAndPriorityWithCompletionBlock(serializeItems(value), priority, (error, ref) => {
145 if (error) {
146 const err = FirebaseError.fromNative(error);
147 onComplete?.(err);
148 reject(err);
149 } else {
150 onComplete?.(null);
151 resolve();
152 }
153 });
154 });
155 }
156
157 update(values: { [key: string]: any }, onComplete?: (error: FirebaseError) => void): Promise<void> {
158 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 2

serializeItemsFunction · 0.70
fromNativeMethod · 0.45

Tested by

no test coverage detected