Пример #1
0
        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
                );
        }
Пример #2
0
        public void setOfflineMode(bool offlineMode)
        {
#if UNITY_WSA_10_0
            AdjustWS10.SetOfflineMode(offlineMode);
#elif UNITY_WINRT_8_1
            AdjustWS81.SetOfflineMode(offlineMode);
#endif
        }
Пример #3
0
        public void setEnabled(bool enabled)
        {
#if UNITY_WSA_10_0
            AdjustWS10.SetEnabled(enabled);
#elif UNITY_WINRT_8_1
            AdjustWS81.SetEnabled(enabled);
#endif
        }
Пример #4
0
        public void onResume()
        {
#if UNITY_WSA_10_0
            AdjustWS10.ApplicationActivated();
#elif UNITY_WINRT_8_1
            AdjustWS81.ApplicationActivated();
#endif
        }
Пример #5
0
        public void onPause()
        {
#if UNITY_WSA_10_0
            AdjustWS10.ApplicationDeactivated();
#elif UNITY_WINRT_8_1
            AdjustWS81.ApplicationDeactivated();
#endif
        }
Пример #6
0
        public bool isEnabled()
        {
#if UNITY_WSA_10_0
            return(AdjustWS10.IsEnabled());
#elif UNITY_WINRT_8_1
            return(AdjustWS81.IsEnabled());
#endif
        }
Пример #7
0
        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
                );
        }