Ejemplo n.º 1
0
    public static void appDidLaunch(string appToken, AdjustUtil.AdjustEnvironment environment, AdjustUtil.LogLevel logLevel, bool eventBuffering)
    {
        if (Adjust.instance != null)
        {
            Debug.Log("adjust: warning, SDK already started. Restarting");
        }
        Adjust.instance = new AdjustAndroid();
        if (Adjust.instance == null)
        {
            Debug.Log("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps");
            return;
        }
        Adjust.instance.appDidLaunch(appToken, environment, "unity3.3.0", logLevel, eventBuffering);
        GameObject gameObject = GameObject.Find("OmniataManager");

        if (gameObject == null)
        {
            return;
        }
        OmniataComponent component = gameObject.GetComponent <OmniataComponent>();

        if (component == null)
        {
            return;
        }
        Omniata omniataInstance = component.GetOmniataInstance();

        if (omniataInstance == null)
        {
            return;
        }
        if (!omniataInstance.Initialized)
        {
            return;
        }
        string eventToken = string.Empty;

        eventToken = "fyn6ku";
        Adjust.trackEvent(eventToken, new Dictionary <string, string>
        {
            {
                "user",
                omniataInstance.UserID
            },
            {
                "api_key",
                omniataInstance.ApiKey
            }
        });
    }
Ejemplo n.º 2
0
        public void appDidLaunch(string appToken, AdjustUtil.AdjustEnvironment environment, string sdkPrefix, AdjustUtil.LogLevel logLevel, bool eventBuffering)
        {
            string text  = environment.ToString().ToLower();
            string text2 = logLevel.ToString().ToLower();

            this.ajcAdjust.CallStatic("appDidLaunch", new object[]
            {
                this.ajoCurrentActivity,
                appToken,
                text,
                text2,
                eventBuffering
            });
            this.ajcAdjust.CallStatic("setSdkPrefix", new object[]
            {
                sdkPrefix
            });
            this.onResume();
        }