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

Method constructor

packages/firebase-app-check/index.ios.ts:139–152  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

137 _nativeApp;
138 _app: FirebaseApp;
139 constructor(app?: FirebaseApp) {
140 if (app?.native) {
141 this._native = FIRAppCheck.appCheckWithApp(app.native);
142 this._nativeApp = app.native;
143 } else {
144 if (defaultAppCheck) {
145 return defaultAppCheck;
146 }
147 defaultAppCheck = this;
148 const app = FIRApp.defaultApp();
149 this._native = FIRAppCheck.appCheckWithApp(app);
150 this._nativeApp = app;
151 }
152 }
153
154 static setProviderFactory(custom?: AppCheckProviderFactory) {
155 if (custom && custom instanceof AppCheckProviderFactory) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected