public void Show() { if (this.m_show) { return; } this.m_show = true; WebAuth.ShowWebView(true); }
public void Hide() { if (!this.m_show) { return; } this.m_show = false; WebAuth.ShowWebView(false); }
private static void GoBack() { if (!WebAuth.IsWebLoginActivityReady()) { return; } AndroidJavaObject androidJavaObject = WebAuth.m_androidWebLoginActivity.CallStatic <AndroidJavaObject>("getInstance", new object[0]); androidJavaObject.Call("GoBack", new object[0]); }
private static void SetBreakingNews(string localized_title, string body, string gameObjectName) { if (!WebAuth.IsWebLoginActivityReady()) { return; } AndroidJavaObject androidJavaObject = WebAuth.m_androidWebLoginActivity.CallStatic <AndroidJavaObject>("getInstance", new object[0]); androidJavaObject.Call("SetBreakingNews", new object[] { localized_title, body, gameObjectName }); }
private static string GetWebViewLoginCode() { if (!WebAuth.IsWebLoginActivityReady()) { return(string.Empty); } AndroidJavaObject androidJavaObject = WebAuth.m_androidWebLoginActivity.CallStatic <AndroidJavaObject>("getInstance", new object[0]); return(androidJavaObject.Call <string>("GetWebViewLoginCode", new object[0])); }
private static void SetRegionSelectVisualState(bool isVisible) { if (!WebAuth.IsWebLoginActivityReady()) { return; } AndroidJavaObject androidJavaObject = WebAuth.m_androidWebLoginActivity.CallStatic <AndroidJavaObject>("getInstance", new object[0]); androidJavaObject.Call("SetRegionSelectVisualState", new object[] { isVisible }); }
public WebAuth.Status GetStatus() { int webViewStatus = WebAuth.GetWebViewStatus(); if (webViewStatus == 6) { Debug.Log("------------ Web View status no instance ------------"); } if (webViewStatus < 0 || webViewStatus >= 7) { return(WebAuth.Status.Error); } return((WebAuth.Status)webViewStatus); }
public static string GetStoredToken() { return(WebAuth.GetStoredLoginToken()); }
public static void ClearBrowserCache() { WebAuth.ClearURLCache(); }
public static void DeleteCookies() { WebAuth.ClearWebViewCookies(); }
public static void ClearLoginData() { WebAuth.DeleteStoredToken(); WebAuth.DeleteCookies(); WebAuth.ClearBrowserCache(); }
public static bool SetStoredToken(string str) { return(WebAuth.SetStoredLoginToken(str)); }
public static void DeleteStoredToken() { WebAuth.DeleteStoredLoginToken(); }
public string GetLoginCode() { Debug.Log("GetLoginCode"); return(WebAuth.GetWebViewLoginCode()); }
public void SetCountryCodeCookie(string countryCode, string domain) { WebAuth.SetWebViewCountryCodeCookie(countryCode, domain); }
public void Close() { WebAuth.CloseWebView(); }
public void Load() { Debug.Log("Load"); WebAuth.LoadWebView(this.m_url, this.m_window.x, this.m_window.y, this.m_window.width, this.m_window.height, Main.uniqueIdentifier, this.m_callbackGameObject); }
public static void GoBackWebPage() { WebAuth.GoBack(); }
public static void UpdateRegionSelectVisualState(bool isVisible) { WebAuth.SetRegionSelectVisualState(isVisible); }
public static void UpdateBreakingNews(string title, string body, string gameObjectName) { WebAuth.SetBreakingNews(title, body, gameObjectName); }