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

Method constructor

packages/firebase-storage/index.android.ts:571–581  ·  view source on GitHub ↗
(app?: FirebaseApp)

Source from the content-addressed store, hash-verified

569 _app: FirebaseApp;
570
571 constructor(app?: FirebaseApp) {
572 if (app?.native) {
573 this._native = com.google.firebase.storage.FirebaseStorage.getInstance(app.native);
574 } else {
575 if (defaultStorage) {
576 return defaultStorage;
577 }
578 defaultStorage = this;
579 this._native = com.google.firebase.storage.FirebaseStorage.getInstance();
580 }
581 }
582
583 static fromNative(storage: com.google.firebase.storage.FirebaseStorage) {
584 if (storage instanceof com.google.firebase.storage.FirebaseStorage) {

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected