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"); } }
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); }
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); }
public void OnLinkClicked() { webView.Show(linkURL, null, linkText); }
private void onLinkClicked(string[] linkInfo) { webView.Show(linkInfo[0], null, linkInfo[1]); }
private void showWebPageSubPanel(string urlToken) { bool isDownsampled = Service.Get <ConditionalConfiguration>().Get("UniWebView.Downsampled.property", fallbackValue: false); webView.Show(urlToken, null, WebViewerPanel, ScrollUp, ScrollDown, isDownsampled); }
private void onClicked() { webView.Show(URLToken, null, TitleToken); }