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

Method constructor

packages/firebase-app-check/index.android.ts:107–119  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

105 _native: com.google.firebase.appcheck.FirebaseAppCheck;
106 _nativeApp;
107 constructor(app?: FirebaseApp) {
108 if (app?.native) {
109 this._nativeApp = app.native;
110 this._native = com.google.firebase.appcheck.FirebaseAppCheck.getInstance(app.native);
111 } else {
112 if (defaultAppCheck) {
113 return defaultAppCheck;
114 }
115 defaultAppCheck = this;
116 this._nativeApp = (<any>com).google.firebase.FirebaseApp.getInstance();
117 this._native = com.google.firebase.appcheck.FirebaseAppCheck.getInstance();
118 }
119 }
120 static setProviderFactory(custom?: AppCheckProviderFactory) {
121 if (custom && custom instanceof AppCheckProviderFactory) {
122 customProvider = custom;

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected