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