public void start(AdjustConfig adjustConfig) { if (this.adjust != null) { global::Debug.Log("adjust: Error, SDK already started."); return; } if (adjustConfig == null) { global::Debug.Log("adjust: Missing config to start."); return; } this.adjust = new AdjustAndroid(); if (this.adjust == null) { global::Debug.Log("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps."); return; } this.eventSuccessDelegate = adjustConfig.getEventSuccessDelegate(); this.eventFailureDelegate = adjustConfig.getEventFailureDelegate(); this.sessionSuccessDelegate = adjustConfig.getSessionSuccessDelegate(); this.sessionFailureDelegate = adjustConfig.getSessionFailureDelegate(); this.deferredDeeplinkDelegate = adjustConfig.getDeferredDeeplinkDelegate(); this.attributionChangedDelegate = adjustConfig.getAttributionChangedDelegate(); this.adjust.start(adjustConfig); }
public static void start(AdjustConfig adjustConfig) { if (Adjust.instance != null) { Debug.Log("adjust: Error, SDK already started."); return; } if (adjustConfig == null) { Debug.Log("adjust: Missing config to start."); return; } #if UNITY_EDITOR Adjust.instance = null; #elif UNITY_IOS Adjust.instance = new AdjustiOS(); #elif UNITY_ANDROID Adjust.instance = new AdjustAndroid(); #else Adjust.instance = null; #endif if (Adjust.instance == null) { Debug.Log("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps."); return; } adjustConfig.setSdkPrefix(Adjust.sdkPrefix); Adjust.attributionChangedDelegate = adjustConfig.getAttributionChangedDelegate(); Adjust.instance.start(adjustConfig); }
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 } }); }
public static void start(AdjustConfig adjustConfig) { if (Adjust.instance != null) { Debug.Log("adjust: Error, SDK already started."); return; } if (adjustConfig == null) { Debug.Log("adjust: Missing config to start."); return; } #if UNITY_EDITOR Adjust.instance = null; #elif UNITY_IOS Adjust.instance = new AdjustiOS(); #elif UNITY_ANDROID Adjust.instance = new AdjustAndroid(); #elif UNITY_WP8 Adjust.instance = new AdjustWP8(); #elif UNITY_METRO Adjust.instance = new AdjustMetro(); #else Adjust.instance = null; #endif if (Adjust.instance == null) { Debug.Log("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps."); return; } Adjust.eventSuccessDelegate = adjustConfig.getEventSuccessDelegate(); Adjust.eventFailureDelegate = adjustConfig.getEventFailureDelegate(); Adjust.sessionSuccessDelegate = adjustConfig.getSessionSuccessDelegate(); Adjust.sessionFailureDelegate = adjustConfig.getSessionFailureDelegate(); Adjust.deferredDeeplinkDelegate = adjustConfig.getDeferredDeeplinkDelegate(); Adjust.attributionChangedDelegate = adjustConfig.getAttributionChangedDelegate(); Adjust.instance.start(adjustConfig); }
public static void start(AdjustConfig adjustConfig) { if (Adjust.instance != null) { Debug.Log ("adjust: Error, SDK already started."); return; } if (adjustConfig == null) { Debug.Log ("adjust: Missing config to start."); return; } #if UNITY_EDITOR Adjust.instance = null; #elif UNITY_IOS Adjust.instance = new AdjustiOS (); #elif UNITY_ANDROID Adjust.instance = new AdjustAndroid (); #elif UNITY_WP8 Adjust.instance = new AdjustWP8 (); #elif UNITY_METRO Adjust.instance = new AdjustMetro (); #else Adjust.instance = null; #endif if (Adjust.instance == null) { Debug.Log ("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps."); return; } Adjust.attributionChangedDelegate = adjustConfig.getAttributionChangedDelegate (); Adjust.instance.start (adjustConfig); }