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

Method onLink

packages/firebase-dynamic-links/index.ios.ts:507–516  ·  view source on GitHub ↗
(listener: OnLinkListener)

Source from the content-addressed store, hash-verified

505 }
506
507 onLink(listener: OnLinkListener) {
508 DynamicLinks._onLink = listener;
509 if (listener) {
510 TNSFirebaseDynamicLinksAppDelegate.onLinkCallback = (link, error) => {
511 listener(DynamicLink.fromNative(link), error && FirebaseError.fromNative(error));
512 };
513 } else {
514 TNSFirebaseDynamicLinksAppDelegate.onLinkCallback = null;
515 }
516 }
517 resolveLink(link: string): Promise<DynamicLink> {
518 return new Promise((resolve, reject) => {
519 this.native.handleUniversalLinkCompletion(NSURL.URLWithString(link), (dl, error) => {

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected