Exemple #1
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]);
    }
Exemple #2
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]));
    }
Exemple #3
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
        });
    }
Exemple #4
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
        });
    }