void OnApplicationPause(bool pauseStatus) { if (IsEditor()) { return; } #if UNITY_IOS // No action, iOS SDK is subscribed to iOS lifecycle notifications. #elif UNITY_ANDROID if (pauseStatus) { AdjustAndroid.OnPause(); } else { AdjustAndroid.OnResume(); } #elif (UNITY_WSA || UNITY_WP8) if (pauseStatus) { AdjustWindows.OnPause(); } else { AdjustWindows.OnResume(); } #else Debug.Log(errorMsgPlatform); #endif }
public static void start(AdjustConfig adjustConfig) { if (IsEditor()) { return; } if (adjustConfig == null) { Debug.Log("Adjust: Missing config to start."); return; } #if UNITY_IOS Adjust.eventSuccessDelegate = adjustConfig.getEventSuccessDelegate(); Adjust.eventFailureDelegate = adjustConfig.getEventFailureDelegate(); Adjust.sessionSuccessDelegate = adjustConfig.getSessionSuccessDelegate(); Adjust.sessionFailureDelegate = adjustConfig.getSessionFailureDelegate(); Adjust.deferredDeeplinkDelegate = adjustConfig.getDeferredDeeplinkDelegate(); Adjust.attributionChangedDelegate = adjustConfig.getAttributionChangedDelegate(); AdjustiOS.Start(adjustConfig); #elif UNITY_ANDROID AdjustAndroid.Start(adjustConfig); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.Start(adjustConfig); #else Debug.Log(errorMsgPlatform); #endif }
public static void gdprForgetMe() { #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 resetSessionCallbackParameters() { if (!Application.isEditor) { #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 setOfflineMode(bool enabled) { if (!Application.isEditor) { #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 removeSessionPartnerParameter(string key) { if (!Application.isEditor) { #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 addSessionCallbackParameter(string key, string value) { if (!Application.isEditor) { #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 (!Application.isEditor) { #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 (!Application.isEditor) { #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 setDeviceToken(string deviceToken) { if (!Application.isEditor) { #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 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("Cannot run integration tests. None of the supported platforms selected."); #endif }
public static void resetSessionPartnerParameters() { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.ResetSessionPartnerParameters(); #elif UNITY_ANDROID AdjustAndroid.ResetSessionPartnerParameters(); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.ResetSessionPartnerParameters(); #else Debug.Log(errorMsgPlatform); #endif }
public static void removeSessionCallbackParameter(string key) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.RemoveSessionCallbackParameter(key); #elif UNITY_ANDROID AdjustAndroid.RemoveSessionCallbackParameter(key); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.RemoveSessionCallbackParameter(key); #else Debug.Log(errorMsgPlatform); #endif }
public static void addSessionPartnerParameter(string key, string value) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.AddSessionPartnerParameter(key, value); #elif UNITY_ANDROID AdjustAndroid.AddSessionPartnerParameter(key, value); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.AddSessionPartnerParameter(key, value); #else Debug.Log(errorMsgPlatform); #endif }
public static void setEnabled(bool enabled) { if (IsEditor()) { return; } #if UNITY_IOS AdjustiOS.SetEnabled(enabled); #elif UNITY_ANDROID AdjustAndroid.SetEnabled(enabled); #elif (UNITY_WSA || UNITY_WP8) AdjustWindows.SetEnabled(enabled); #else Debug.Log(errorMsgPlatform); #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 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 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 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 } }
public static string getWinAdid() { if (IsEditor()) { return(string.Empty); } #if UNITY_IOS Debug.Log("Adjust: Error! Windows Advertising ID is not available on iOS platform."); return(string.Empty); #elif UNITY_ANDROID Debug.Log("Adjust: Error! Windows Advertising ID is not available on Android platform."); return(string.Empty); #elif (UNITY_WSA || UNITY_WP8) return(AdjustWindows.GetWinAdId()); #else Debug.Log(errorMsgPlatform); return(string.Empty); #endif }