コード例 #1
0
        public void ReloadPurchaseFlow(CSGConfig csgConfig, string planId)
        {
            this.csgConfig = csgConfig;
            string text = this.csgConfig.BaseUrl + "?config={0}&planId={1}&pageType=checkout";

            if (webViewController != null)
            {
                IContentInterruption gate = new ParentGate();
                webViewController.Show(text, gate, "Membership.Purchase.CSG.WebviewerTitle", AllowPopups: true, openPopupInNewBrowser: false, 1.8f, 3f);
            }
            else
            {
                ShowFlow(text, "Membership.Purchase.CSG.WebviewerTitle");
            }
        }
コード例 #2
0
 public void ShowOnPanel(string urlToken, Button scrollUp, Button scrollDown, GameObject viewerPanel, bool isDownsampled, string javaScriptLoginFunction = "")
 {
     jsLoginFunction = javaScriptLoginFunction;
     webView         = new WebViewController(base.gameObject);
     addWebViewListeners();
     webView.WaitForReadyToShow = waitForReadyToShow;
     webView.IsReadyToShow      = receivedInitialLoginFunctionResponse;
     webView.Show(urlToken, null, viewerPanel, scrollUp, scrollDown, isDownsampled);
 }
コード例 #3
0
        public void ShowFlow(string url, string title)
        {
            closeUserInitiated          = true;
            webViewGameObject           = new GameObject("WebView");
            webViewController           = new WebViewController(webViewGameObject);
            webViewController.OnLoaded += delegate
            {
                if (!string.IsNullOrEmpty("CPI.Membership.WebviewEventComm"))
                {
                    webViewController.RegisterJSFunction("CPI.Membership.WebviewEventComm");
                    webViewController.CallFunction("CPI.Membership.EnableWebviewEventComm");
                }
            };
            webViewController.OnFailed          += onWebViewFailed;
            webViewController.OnClosed          += onWebViewClosed;
            webViewController.OnReceivedMessage += onReceivedMessage;
            WebViewController obj = webViewController;

            obj.FormatURL = (WebViewController.FormatURLDelegate)Delegate.Combine(obj.FormatURL, new WebViewController.FormatURLDelegate(setURLParameters));
            IContentInterruption gate = new ParentGate();

            webViewController.Show(url, gate, title, webViewPopupKey, AllowPopups: true, openPopupInNewBrowser: false, 1.8f, 3f);
        }
コード例 #4
0
 public void OnLinkClicked()
 {
     webView.Show(linkURL, null, linkText);
 }
コード例 #5
0
 private void onLinkClicked(string[] linkInfo)
 {
     webView.Show(linkInfo[0], null, linkInfo[1]);
 }
コード例 #6
0
    private void showWebPageSubPanel(string urlToken)
    {
        bool isDownsampled = Service.Get <ConditionalConfiguration>().Get("UniWebView.Downsampled.property", fallbackValue: false);

        webView.Show(urlToken, null, WebViewerPanel, ScrollUp, ScrollDown, isDownsampled);
    }
コード例 #7
0
 private void onClicked()
 {
     webView.Show(URLToken, null, TitleToken);
 }