public static void setReferrer(string referrer) { if (IsEditor()) { return; } #if UNITY_IOS Debug.Log("[Adjust]: Install referrer is not available on iOS platform."); #elif UNITY_ANDROID AdjustAndroid.SetReferrer(referrer); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("[Adjust]: Error! Install referrer is not available on Windows platform."); #else Debug.Log(errorMsgPlatform); #endif }
public static void trackThirdPartySharing(AdjustThirdPartySharing thirdPartySharing) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.TrackThirdPartySharing(thirdPartySharing); #elif UNITY_ANDROID AdjustAndroid.TrackThirdPartySharing(thirdPartySharing); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("[Adjust]: Third party sharing tracking is only supported for iOS and Android platforms."); #else Debug.Log(errorMsgPlatform); #endif }
public static void trackMeasurementConsent(bool measurementConsent) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.TrackMeasurementConsent(measurementConsent); #elif UNITY_ANDROID AdjustAndroid.TrackMeasurementConsent(measurementConsent); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("[Adjust]: Measurement consent tracking is only supported for iOS and Android platforms."); #else Debug.Log(errorMsgPlatform); #endif }
public static void trackAdRevenue(string source, string payload) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.TrackAdRevenue(source, payload); #elif UNITY_ANDROID AdjustAndroid.TrackAdRevenue(source, payload); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("[Adjust]: Ad revenue tracking is only supported for Android and iOS platforms."); #else Debug.Log(errorMsgPlatform); #endif }
public static void trackPlayStoreSubscription(AdjustPlayStoreSubscription subscription) { if (IsEditor()) { return; } #if UNITY_IOS Debug.Log("[Adjust]: Play Store subscription tracking is only supported for Android platform."); #elif UNITY_ANDROID AdjustAndroid.TrackPlayStoreSubscription(subscription); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("[Adjust]: Play Store subscription tracking is only supported for Android platform."); #else Debug.Log(errorMsgPlatform); #endif }
public static void removeSessionPartnerParameter(string key) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.RemoveSessionPartnerParameter(key); #elif UNITY_ANDROID AdjustAndroid.RemoveSessionPartnerParameter(key); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.RemoveSessionPartnerParameter(key); #else Debug.Log(errorMsgPlatform); #endif }
public static void resetSessionCallbackParameters() { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.ResetSessionCallbackParameters(); #elif UNITY_ANDROID AdjustAndroid.ResetSessionCallbackParameters(); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.ResetSessionCallbackParameters(); #else Debug.Log(errorMsgPlatform); #endif }
public static void addSessionCallbackParameter(string key, string value) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.AddSessionCallbackParameter(key, value); #elif UNITY_ANDROID AdjustAndroid.AddSessionCallbackParameter(key, value); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.AddSessionCallbackParameter(key, value); #else Debug.Log(errorMsgPlatform); #endif }
public static void sendFirstPackages() { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.SendFirstPackages(); #elif UNITY_ANDROID AdjustAndroid.SendFirstPackages(); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.SendFirstPackages(); #else Debug.Log(errorMsgPlatform); #endif }
public static void appWillOpenUrl(string url) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.AppWillOpenUrl(url); #elif UNITY_ANDROID AdjustAndroid.AppWillOpenUrl(url); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.AppWillOpenUrl(url); #else Debug.Log(errorMsgPlatform); #endif }
public static void SetTestOptions(Dictionary <string, string> testOptions) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.SetTestOptions(testOptions); #elif UNITY_ANDROID AdjustAndroid.SetTestOptions(testOptions); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.SetTestOptions(testOptions); #else Debug.Log("[Adjust]: Cannot run integration tests. None of the supported platforms selected."); #endif }
public static void getGoogleAdId(Action <string> onDeviceIdsRead) { if (!Application.isEditor) { #if UNITY_IOS Debug.Log("Adjust: Google Play Advertising ID is not available on iOS platform."); onDeviceIdsRead(string.Empty); #elif UNITY_ANDROID AdjustAndroid.GetGoogleAdId(onDeviceIdsRead); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("Adjust: Google Play Advertising ID is not available on Windows platform."); onDeviceIdsRead(string.Empty); #else Debug.Log(errorMsgPlatform); #endif } }
public static void gdprForgetMe() { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.GdprForgetMe(); #elif UNITY_ANDROID AdjustAndroid.GdprForgetMe(); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.GdprForgetMe(); #else Debug.Log(errorMsgPlatform); #endif }
public static void setDeviceToken(string deviceToken) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.SetDeviceToken(deviceToken); #elif UNITY_ANDROID AdjustAndroid.SetDeviceToken(deviceToken); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.SetDeviceToken(deviceToken); #else Debug.Log(errorMsgPlatform); #endif }
public static void setOfflineMode(bool enabled) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.SetOfflineMode(enabled); #elif UNITY_ANDROID AdjustAndroid.SetOfflineMode(enabled); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.SetOfflineMode(enabled); #else Debug.Log(errorMsgPlatform); #endif }
public static void disableThirdPartySharing() { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.DisableThirdPartySharing(); #elif UNITY_ANDROID AdjustAndroid.DisableThirdPartySharing(); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("[Adjust]: Disable third party sharing is only supported for Android and iOS platforms."); #else Debug.Log(errorMsgPlatform); #endif }
public static bool isEnabled() { if (IsEditor()) { return(false); } #if UNITY_IOS return(AdjustiOS.IsEnabled()); #elif UNITY_ANDROID return(AdjustAndroid.IsEnabled()); #elif (UNITY_WSA || UNITY_WP8) return(AdjustWindows.IsEnabled()); #else Debug.Log(errorMsgPlatform); return(false); #endif }
public static AdjustAttribution getAttribution() { if (IsEditor()) { return(null); } #if UNITY_IOS return(AdjustiOS.GetAttribution()); #elif UNITY_ANDROID return(AdjustAndroid.GetAttribution()); #elif (UNITY_WSA || UNITY_WP8) return(AdjustWindows.GetAttribution()); #else Debug.Log(errorMsgPlatform); return(null); #endif }
public static string getSdkVersion() { if (IsEditor()) { return(string.Empty); } #if UNITY_IOS return(AdjustiOS.GetSdkVersion()); #elif UNITY_ANDROID return(AdjustAndroid.GetSdkVersion()); #elif (UNITY_WSA || UNITY_WP8) return(AdjustWindows.GetSdkVersion()); #else Debug.Log(errorMsgPlatform); return(string.Empty); #endif }
public static string getAdid() { if (!Application.isEditor) { #if UNITY_IOS return(AdjustiOS.GetAdid()); #elif UNITY_ANDROID return(AdjustAndroid.GetAdid()); #elif (UNITY_WSA || UNITY_WP8) return(AdjustWindows.GetAdid()); #else Debug.Log(errorMsgPlatform); return(string.Empty); #endif } else { return(string.Empty); } }
public static string getAmazonAdId() { if (IsEditor()) { return(string.Empty); } #if UNITY_IOS Debug.Log("Adjust: Amazon Advertising ID is not available on iOS platform."); return(string.Empty); #elif UNITY_ANDROID return(AdjustAndroid.GetAmazonAdId()); #elif (UNITY_WSA || UNITY_WP8) Debug.Log("Adjust: Amazon Advertising ID not available on Windows platform."); return(string.Empty); #else Debug.Log(errorMsgPlatform); return(string.Empty); #endif }
public static void trackEvent(AdjustEvent adjustEvent) { if (!Application.isEditor) { if (adjustEvent == null) { Debug.Log("Adjust: Missing event to track."); return; } #if UNITY_IOS AdjustiOS.TrackEvent(adjustEvent); #elif UNITY_ANDROID AdjustAndroid.TrackEvent(adjustEvent); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.TrackEvent(adjustEvent); #else Debug.Log(errorMsgPlatform); #endif } }
// Token: 0x0600007A RID: 122 RVA: 0x000040C2 File Offset: 0x000024C2 public static void addSessionCallbackParameter(string key, string value) { AdjustAndroid.addSessionCallbackParameter(key, value); }
public static void gdprForgetMe() { AdjustAndroid.GdprForgetMe(); }
public static void Start(AdjustConfig adjustConfig) { AndroidJavaObject androidJavaObject = (adjustConfig.environment != AdjustEnvironment.Sandbox) ? new AndroidJavaClass("com.adjust.sdk.AdjustConfig").GetStatic <AndroidJavaObject>("ENVIRONMENT_PRODUCTION") : new AndroidJavaClass("com.adjust.sdk.AdjustConfig").GetStatic <AndroidJavaObject>("ENVIRONMENT_SANDBOX"); bool?allowSuppressLogLevel = adjustConfig.allowSuppressLogLevel; AndroidJavaObject androidJavaObject2; if (allowSuppressLogLevel != null) { androidJavaObject2 = new AndroidJavaObject("com.adjust.sdk.AdjustConfig", new object[] { AdjustAndroid.ajoCurrentActivity, adjustConfig.appToken, androidJavaObject, adjustConfig.allowSuppressLogLevel }); } else { androidJavaObject2 = new AndroidJavaObject("com.adjust.sdk.AdjustConfig", new object[] { AdjustAndroid.ajoCurrentActivity, adjustConfig.appToken, androidJavaObject }); } AdjustAndroid.launchDeferredDeeplink = adjustConfig.launchDeferredDeeplink; AdjustLogLevel?logLevel = adjustConfig.logLevel; if (logLevel != null) { AndroidJavaObject @static; if (adjustConfig.logLevel.Value.ToUppercaseString().Equals("SUPPRESS")) { @static = new AndroidJavaClass("com.adjust.sdk.LogLevel").GetStatic <AndroidJavaObject>("SUPRESS"); } else { @static = new AndroidJavaClass("com.adjust.sdk.LogLevel").GetStatic <AndroidJavaObject>(adjustConfig.logLevel.Value.ToUppercaseString()); } if (@static != null) { androidJavaObject2.Call("setLogLevel", new object[] { @static }); } } androidJavaObject2.Call("setSdkPrefix", new object[] { "unity4.14.1" }); double?delayStart = adjustConfig.delayStart; if (delayStart != null) { androidJavaObject2.Call("setDelayStart", new object[] { adjustConfig.delayStart }); } bool?eventBufferingEnabled = adjustConfig.eventBufferingEnabled; if (eventBufferingEnabled != null) { AndroidJavaObject androidJavaObject3 = new AndroidJavaObject("java.lang.Boolean", new object[] { adjustConfig.eventBufferingEnabled.Value }); androidJavaObject2.Call("setEventBufferingEnabled", new object[] { androidJavaObject3 }); } bool?sendInBackground = adjustConfig.sendInBackground; if (sendInBackground != null) { androidJavaObject2.Call("setSendInBackground", new object[] { adjustConfig.sendInBackground.Value }); } if (adjustConfig.userAgent != null) { androidJavaObject2.Call("setUserAgent", new object[] { adjustConfig.userAgent }); } if (!string.IsNullOrEmpty(adjustConfig.processName)) { androidJavaObject2.Call("setProcessName", new object[] { adjustConfig.processName }); } if (adjustConfig.defaultTracker != null) { androidJavaObject2.Call("setDefaultTracker", new object[] { adjustConfig.defaultTracker }); } if (AdjustAndroid.IsAppSecretSet(adjustConfig)) { androidJavaObject2.Call("setAppSecret", new object[] { adjustConfig.secretId.Value, adjustConfig.info1.Value, adjustConfig.info2.Value, adjustConfig.info3.Value, adjustConfig.info4.Value }); } if (adjustConfig.isDeviceKnown != null) { androidJavaObject2.Call("setDeviceKnown", new object[] { adjustConfig.isDeviceKnown.Value }); } if (adjustConfig.readImei != null) { androidJavaObject2.Call("setReadMobileEquipmentIdentity", new object[] { adjustConfig.readImei.Value }); } if (adjustConfig.attributionChangedDelegate != null) { AdjustAndroid.onAttributionChangedListener = new AdjustAndroid.AttributionChangeListener(adjustConfig.attributionChangedDelegate); androidJavaObject2.Call("setOnAttributionChangedListener", new object[] { AdjustAndroid.onAttributionChangedListener }); } if (adjustConfig.eventSuccessDelegate != null) { AdjustAndroid.onEventTrackingSucceededListener = new AdjustAndroid.EventTrackingSucceededListener(adjustConfig.eventSuccessDelegate); androidJavaObject2.Call("setOnEventTrackingSucceededListener", new object[] { AdjustAndroid.onEventTrackingSucceededListener }); } if (adjustConfig.eventFailureDelegate != null) { AdjustAndroid.onEventTrackingFailedListener = new AdjustAndroid.EventTrackingFailedListener(adjustConfig.eventFailureDelegate); androidJavaObject2.Call("setOnEventTrackingFailedListener", new object[] { AdjustAndroid.onEventTrackingFailedListener }); } if (adjustConfig.sessionSuccessDelegate != null) { AdjustAndroid.onSessionTrackingSucceededListener = new AdjustAndroid.SessionTrackingSucceededListener(adjustConfig.sessionSuccessDelegate); androidJavaObject2.Call("setOnSessionTrackingSucceededListener", new object[] { AdjustAndroid.onSessionTrackingSucceededListener }); } if (adjustConfig.sessionFailureDelegate != null) { AdjustAndroid.onSessionTrackingFailedListener = new AdjustAndroid.SessionTrackingFailedListener(adjustConfig.sessionFailureDelegate); androidJavaObject2.Call("setOnSessionTrackingFailedListener", new object[] { AdjustAndroid.onSessionTrackingFailedListener }); } if (adjustConfig.deferredDeeplinkDelegate != null) { AdjustAndroid.onDeferredDeeplinkListener = new AdjustAndroid.DeferredDeeplinkListener(adjustConfig.deferredDeeplinkDelegate); androidJavaObject2.Call("setOnDeeplinkResponseListener", new object[] { AdjustAndroid.onDeferredDeeplinkListener }); } AdjustAndroid.ajcAdjust.CallStatic("onCreate", new object[] { androidJavaObject2 }); AdjustAndroid.ajcAdjust.CallStatic("onResume", new object[0]); }
public static bool isEnabled() { return(!Adjust.IsEditor() && AdjustAndroid.IsEnabled()); }
// Token: 0x0600007E RID: 126 RVA: 0x000040E2 File Offset: 0x000024E2 public static void resetSessionCallbackParameters() { AdjustAndroid.resetSessionCallbackParameters(); }
// Token: 0x0600007D RID: 125 RVA: 0x000040DB File Offset: 0x000024DB public static void resetSessionPartnerParameters() { AdjustAndroid.resetSessionPartnerParameters(); }
// Token: 0x0600007C RID: 124 RVA: 0x000040D3 File Offset: 0x000024D3 public static void removeSessionCallbackParameter(string key) { AdjustAndroid.removeSessionCallbackParameter(key); }
// Token: 0x0600007B RID: 123 RVA: 0x000040CB File Offset: 0x000024CB public static void removeSessionPartnerParameter(string key) { AdjustAndroid.removeSessionPartnerParameter(key); }