Exemplo n.º 1
0
 public void Show()
 {
     if (this.m_show)
     {
         return;
     }
     this.m_show = true;
     WebAuth.ShowWebView(true);
 }
Exemplo n.º 2
0
 public void Hide()
 {
     if (!this.m_show)
     {
         return;
     }
     this.m_show = false;
     WebAuth.ShowWebView(false);
 }
Exemplo n.º 3
0
        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 });
        }
Exemplo n.º 5
0
        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 });
        }
Exemplo n.º 7
0
        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);
        }
Exemplo n.º 8
0
 public static string GetStoredToken()
 {
     return(WebAuth.GetStoredLoginToken());
 }
Exemplo n.º 9
0
 public static void ClearBrowserCache()
 {
     WebAuth.ClearURLCache();
 }
Exemplo n.º 10
0
 public static void DeleteCookies()
 {
     WebAuth.ClearWebViewCookies();
 }
Exemplo n.º 11
0
 public static void ClearLoginData()
 {
     WebAuth.DeleteStoredToken();
     WebAuth.DeleteCookies();
     WebAuth.ClearBrowserCache();
 }
Exemplo n.º 12
0
 public static bool SetStoredToken(string str)
 {
     return(WebAuth.SetStoredLoginToken(str));
 }
Exemplo n.º 13
0
 public static void DeleteStoredToken()
 {
     WebAuth.DeleteStoredLoginToken();
 }
Exemplo n.º 14
0
 public string GetLoginCode()
 {
     Debug.Log("GetLoginCode");
     return(WebAuth.GetWebViewLoginCode());
 }
Exemplo n.º 15
0
 public void SetCountryCodeCookie(string countryCode, string domain)
 {
     WebAuth.SetWebViewCountryCodeCookie(countryCode, domain);
 }
Exemplo n.º 16
0
 public void Close()
 {
     WebAuth.CloseWebView();
 }
Exemplo n.º 17
0
 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);
 }
Exemplo n.º 18
0
 public static void GoBackWebPage()
 {
     WebAuth.GoBack();
 }
Exemplo n.º 19
0
 public static void UpdateRegionSelectVisualState(bool isVisible)
 {
     WebAuth.SetRegionSelectVisualState(isVisible);
 }
Exemplo n.º 20
0
 public static void UpdateBreakingNews(string title, string body, string gameObjectName)
 {
     WebAuth.SetBreakingNews(title, body, gameObjectName);
 }