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

Method disableNetwork

packages/firebase-firestore/index.ios.ts:1393–1403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1391 }
1392
1393 disableNetwork(): Promise<void> {
1394 return new Promise((resolve, reject) => {
1395 this.native.disableNetworkWithCompletion((error) => {
1396 if (error) {
1397 reject(FirebaseError.fromNative(error));
1398 } else {
1399 resolve();
1400 }
1401 });
1402 });
1403 }
1404
1405 doc(documentPath: string): DocumentReference {
1406 return DocumentReference.fromNative(this.native.documentWithPath(documentPath));

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected