Exemplo n.º 1
0
        //external universal link
        private void OnLinkActivated(LinkActivation linkActivation)
        {
            Debug.Log($"ApplicationOnDeepLinkActivated: {linkActivation.Uri} is valid deep link: {linkActivation.Uri.IsValidDeepLink()}");
            QuartersLink link = QuartersLink.Create(linkActivation.Uri);

            if (link.Uri.IsValidDeepLink())
            {
                //deep link opened
                if (OnDeepLink != null)
                {
                    OnDeepLink(link);
                }
            }
        }
Exemplo n.º 2
0
        //webview
        private void WebViewOnOnPageStarted(UniWebView webview, string url)
        {
            Debug.Log($"WebViewOnOnPageStarted: {url}");
            QuartersLink link = QuartersLink.Create(url);

            if (link.Uri.IsValidDeepLink())
            {
                //deep link opened
                WebView.Hide();
                if (OnDeepLink != null)
                {
                    OnDeepLink(link);
                }
            }
        }