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

Method constructor

packages/firebase-ui/index.ios.ts:486–501  ·  view source on GitHub ↗
(auth?: Auth)

Source from the content-addressed store, hash-verified

484 _reject;
485
486 constructor(auth?: Auth) {
487 const native = (auth as any)?.native;
488 if (native) {
489 this._native = FUIAuth.authUIWithAuth(native);
490 this._auth = auth;
491 } else {
492 if (defaultUI) {
493 return defaultUI;
494 }
495 defaultUI = this;
496 this._native = FUIAuth.defaultAuthUI();
497 }
498
499 this._delegate = FUIAuthDelegateImpl.initWithOwner(new WeakRef(this));
500 this._native.delegate = this._delegate;
501 }
502
503 static fromNative(ui: FUIAuth) {
504 if (ui instanceof FUIAuth) {

Callers

nothing calls this directly

Calls 1

initWithOwnerMethod · 0.45

Tested by

no test coverage detected