public void start(AdjustConfig adjustConfig) { string logLevelString = null; string environment = lowercaseToString(adjustConfig.environment); Action <Dictionary <string, string> > attributionChangedDictionary = null; if (adjustConfig.logLevel.HasValue) { logLevelString = lowercaseToString(adjustConfig.logLevel.Value); } if (adjustConfig.attributionChangedDelegate != null) { attributionChangedDictionary = (attributionDictionary) => Adjust.runAttributionChangedDictionary(attributionDictionary); } #if UNITY_WSA_10_0 AdjustWS10.ApplicationLaunching( #elif UNITY_WINRT_8_1 AdjustWS81.ApplicationLaunching( #endif appToken: adjustConfig.appToken, logLevelString: logLevelString, environment: environment, defaultTracker: adjustConfig.defaultTracker, eventBufferingEnabled: adjustConfig.eventBufferingEnabled, sdkPrefix: sdkPrefix, attributionChangedDic: attributionChangedDictionary, logDelegate: adjustConfig.logDelegate ); }
public void setOfflineMode(bool offlineMode) { #if UNITY_WSA_10_0 AdjustWS10.SetOfflineMode(offlineMode); #elif UNITY_WINRT_8_1 AdjustWS81.SetOfflineMode(offlineMode); #endif }
public void setEnabled(bool enabled) { #if UNITY_WSA_10_0 AdjustWS10.SetEnabled(enabled); #elif UNITY_WINRT_8_1 AdjustWS81.SetEnabled(enabled); #endif }
public void onResume() { #if UNITY_WSA_10_0 AdjustWS10.ApplicationActivated(); #elif UNITY_WINRT_8_1 AdjustWS81.ApplicationActivated(); #endif }
public void onPause() { #if UNITY_WSA_10_0 AdjustWS10.ApplicationDeactivated(); #elif UNITY_WINRT_8_1 AdjustWS81.ApplicationDeactivated(); #endif }
public bool isEnabled() { #if UNITY_WSA_10_0 return(AdjustWS10.IsEnabled()); #elif UNITY_WINRT_8_1 return(AdjustWS81.IsEnabled()); #endif }
public void trackEvent(AdjustEvent adjustEvent) { #if UNITY_WSA_10_0 AdjustWS10.TrackEvent( #elif UNITY_WINRT_8_1 AdjustWS81.TrackEvent( #endif eventToken: adjustEvent.eventToken, revenue: adjustEvent.revenue, currency: adjustEvent.currency, callbackList: adjustEvent.callbackList, partnerList: adjustEvent.partnerList ); }