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

Method enableNetwork

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

Source from the content-addressed store, hash-verified

1407 }
1408
1409 enableNetwork(): Promise<void> {
1410 return new Promise((resolve, reject) => {
1411 this.native.enableNetworkWithCompletion((error) => {
1412 if (error) {
1413 reject(FirebaseError.fromNative(error));
1414 } else {
1415 resolve();
1416 }
1417 });
1418 });
1419 }
1420
1421 runTransaction(updateFunction: (transaction: Transaction) => Promise<any>): Promise<any> {
1422 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected