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

Method constructor

packages/firebase-functions/index.android.ts:145–157  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

143 _app: FirebaseApp;
144
145 constructor(app?: FirebaseApp) {
146 if (app?.native) {
147 this._native = defaultRegionOrCustomDomain ? com.google.firebase.functions.FirebaseFunctions.getInstance(app.native, defaultRegionOrCustomDomain) : com.google.firebase.functions.FirebaseFunctions.getInstance(app.native);
148 } else {
149 if (defaultFunctions) {
150 return defaultFunctions;
151 }
152 defaultFunctions = this;
153 // If defaultRegionOrCustomDomain is set, get FirebaseFunctions instance using that parameter
154 // @see https://firebase.google.com/docs/functions/locations_client-side_location_selection_for_callable_functions
155 this._native = defaultRegionOrCustomDomain ? com.google.firebase.functions.FirebaseFunctions.getInstance(defaultRegionOrCustomDomain) : com.google.firebase.functions.FirebaseFunctions.getInstance();
156 }
157 }
158
159 httpsCallable(name: string, options?: HttpsCallableOptions): HttpsCallable {
160 const callable = this.native.getHttpsCallable(name);

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected