예제 #1
0
        public void GetNativeDeferredDeeplink(string deeplinkURL)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.deferredDeeplinkDelegate == null)
            {
                Debug.Log("[Adjust]: Deferred deeplink delegate was not set.");
                return;
            }

            Adjust.deferredDeeplinkDelegate(deeplinkURL);
        }
예제 #2
0
        public void GetNativeDeferredDeeplink(string deeplinkURL)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.deferredDeeplinkDelegate == null)
            {
                Debug.Log("adjust: Deferred deeplink delegate was not set.");
                return;
            }

            Adjust.deferredDeeplinkDelegate(deeplinkURL);
        }
예제 #3
0
        // Token: 0x06000083 RID: 131 RVA: 0x00004174 File Offset: 0x00002574
        public void GetNativeAttribution(string attributionData)
        {
            if (Adjust.instance == null)
            {
                Debug.Log("adjust: SDK not started. Start it manually using the 'start' method.");
                return;
            }
            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("adjust: Attribution changed delegate was not set.");
                return;
            }
            AdjustAttribution obj = new AdjustAttribution(attributionData);

            Adjust.attributionChangedDelegate(obj);
        }
예제 #4
0
        // Token: 0x06000087 RID: 135 RVA: 0x000042A4 File Offset: 0x000026A4
        public void GetNativeSessionFailure(string sessionFailureData)
        {
            if (Adjust.instance == null)
            {
                Debug.Log("adjust: SDK not started. Start it manually using the 'start' method.");
                return;
            }
            if (Adjust.sessionFailureDelegate == null)
            {
                Debug.Log("adjust: Session failure delegate was not set.");
                return;
            }
            AdjustSessionFailure obj = new AdjustSessionFailure(sessionFailureData);

            Adjust.sessionFailureDelegate(obj);
        }
예제 #5
0
        public static void runAttributionChangedDictionary(Dictionary <string, string> dicAttributionData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }
            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("adjust: Attribution changed delegate was not set.");
                return;
            }
            var attribution = new AdjustAttribution(dicAttributionData);

            Adjust.attributionChangedDelegate(attribution);
        }
예제 #6
0
        // Token: 0x06000084 RID: 132 RVA: 0x000041C0 File Offset: 0x000025C0
        public void GetNativeEventSuccess(string eventSuccessData)
        {
            if (Adjust.instance == null)
            {
                Debug.Log("adjust: SDK not started. Start it manually using the 'start' method.");
                return;
            }
            if (Adjust.eventSuccessDelegate == null)
            {
                Debug.Log("adjust: Event success delegate was not set.");
                return;
            }
            AdjustEventSuccess obj = new AdjustEventSuccess(eventSuccessData);

            Adjust.eventSuccessDelegate(obj);
        }
예제 #7
0
 private void Awake()
 {
     if (Adjust.IsEditor())
     {
         return;
     }
     UnityEngine.Object.DontDestroyOnLoad(base.transform.gameObject);
     if (!this.startManually)
     {
         AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment, this.logLevel == AdjustLogLevel.Suppress);
         adjustConfig.setLogLevel(this.logLevel);
         adjustConfig.setSendInBackground(this.sendInBackground);
         adjustConfig.setEventBufferingEnabled(this.eventBuffering);
         adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);
         Adjust.start(adjustConfig);
     }
 }
예제 #8
0
        public void GetNativeEventSuccess(string eventSuccessData)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.eventSuccessDelegate == null)
            {
                Debug.Log("Adjust: Event success delegate was not set.");
                return;
            }

            var eventSuccess = new AdjustEventSuccess(eventSuccessData);

            Adjust.eventSuccessDelegate(eventSuccess);
        }
예제 #9
0
        public void GetNativeEventFailure(string eventFailureData)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.eventFailureDelegate == null)
            {
                Debug.Log("Adjust: Event failure delegate was not set.");
                return;
            }

            var eventFailure = new AdjustEventFailure(eventFailureData);

            Adjust.eventFailureDelegate(eventFailure);
        }
예제 #10
0
        void Awake()
        {
            if (!Application.isEditor)
            {
                DontDestroyOnLoad(transform.gameObject);

                if (!this.startManually)
                {
                    AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment, (this.logLevel == AdjustLogLevel.Suppress));
                    adjustConfig.setLogLevel(this.logLevel);
                    adjustConfig.setSendInBackground(this.sendInBackground);
                    adjustConfig.setEventBufferingEnabled(this.eventBuffering);
                    adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);
                    Adjust.start(adjustConfig);
                }
            }
        }
예제 #11
0
        public void GetNativeSessionSuccess(string sessionSuccessData)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.sessionSuccessDelegate == null)
            {
                Debug.Log("Adjust: Session success delegate was not set.");
                return;
            }

            var sessionSuccess = new AdjustSessionSuccess(sessionSuccessData);

            Adjust.sessionSuccessDelegate(sessionSuccess);
        }
예제 #12
0
        public void GetNativeAttribution(string attributionData)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("Adjust: Attribution changed delegate was not set.");
                return;
            }

            var attribution = new AdjustAttribution(attributionData);

            Adjust.attributionChangedDelegate(attribution);
        }
예제 #13
0
        public void GetNativeSessionFailure(string sessionFailureData)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.sessionFailureDelegate == null)
            {
                Debug.Log("Adjust: Session failure delegate was not set.");
                return;
            }

            var sessionFailure = new AdjustSessionFailure(sessionFailureData);

            Adjust.sessionFailureDelegate(sessionFailure);
        }
예제 #14
0
        public void GetNativeAttribution(string attributionData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.attributionChangedDelegate == null)
            {
                Debug.Log("adjust: Attribution changed delegate was not set.");
                return;
            }

            var attribution = new AdjustAttribution(attributionData);

            Adjust.attributionChangedDelegate(attribution);
        }
예제 #15
0
        public void GetNativeSessionFailure(string sessionFailureData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.sessionFailureDelegate == null)
            {
                Debug.Log("adjust: Session failure delegate was not set.");
                return;
            }

            var sessionFailure = new AdjustSessionFailure(sessionFailureData);

            Adjust.sessionFailureDelegate(sessionFailure);
        }
예제 #16
0
        public void GetNativeEventSuccess(string eventSuccessData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.eventSuccessDelegate == null)
            {
                Debug.Log("adjust: Event success delegate was not set.");
                return;
            }

            var eventSuccess = new AdjustEventSuccess(eventSuccessData);

            Adjust.eventSuccessDelegate(eventSuccess);
        }
예제 #17
0
        public void GetNativeSessionSuccess(string sessionSuccessData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.sessionSuccessDelegate == null)
            {
                Debug.Log("adjust: Session success delegate was not set.");
                return;
            }

            var sessionSuccess = new AdjustSessionSuccess(sessionSuccessData);

            Adjust.sessionSuccessDelegate(sessionSuccess);
        }
예제 #18
0
        public void GetNativeEventFailure(string eventFailureData)
        {
            if (instance == null)
            {
                Debug.Log(Adjust.errorMessage);
                return;
            }

            if (Adjust.eventFailureDelegate == null)
            {
                Debug.Log("adjust: Event failure delegate was not set.");
                return;
            }

            var eventFailure = new AdjustEventFailure(eventFailureData);

            Adjust.eventFailureDelegate(eventFailure);
        }
예제 #19
0
        void Awake()
        {
            DontDestroyOnLoad(transform.gameObject);

            if (!this.startManually)
            {
                AdjustConfig adjustConfig = new AdjustConfig(this.appToken, this.environment);
                adjustConfig.setLogLevel(this.logLevel);
                adjustConfig.setEventBufferingEnabled(eventBuffering);

                if (printAttribution)
                {
                    adjustConfig.setAttributionChangedDelegate(responseDelegate);
                }

                Adjust.start(adjustConfig);
            }
        }
예제 #20
0
        void Awake()
        {
            if (Adjust.instance != null)
            {
                return;
            }

            DontDestroyOnLoad(transform.gameObject);

            if (!this.startManually)
            {
                AdjustConfig adjustConfig;

                if (this.logLevel != AdjustLogLevel.Suppress)
                {
                    adjustConfig = new AdjustConfig(this.appToken, this.environment);
                }
                else
                {
                    adjustConfig = new AdjustConfig(this.appToken, this.environment, true);
                }

                adjustConfig.setLogLevel(this.logLevel);
                adjustConfig.setSendInBackground(this.sendInBackground);
                adjustConfig.setEventBufferingEnabled(this.eventBuffering);
                adjustConfig.setLaunchDeferredDeeplink(this.launchDeferredDeeplink);

                if (printAttribution)
                {
                    adjustConfig.setEventSuccessDelegate(EventSuccessCallback);
                    adjustConfig.setEventFailureDelegate(EventFailureCallback);
                    adjustConfig.setSessionSuccessDelegate(SessionSuccessCallback);
                    adjustConfig.setSessionFailureDelegate(SessionFailureCallback);
                    adjustConfig.setDeferredDeeplinkDelegate(DeferredDeeplinkCallback);
                    adjustConfig.setAttributionChangedDelegate(AttributionChangedCallback);
                }

                Adjust.start(adjustConfig);
            }
        }
예제 #21
0
        public void GetNativeConversionValueUpdated(string conversionValue)
        {
            if (IsEditor())
            {
                return;
            }

            if (Adjust.conversionValueUpdatedDelegate == null)
            {
                Debug.Log("[Adjust]: Conversion value updated delegate was not set.");
                return;
            }

            int cv = -1;

            if (Int32.TryParse(conversionValue, out cv))
            {
                if (cv != -1)
                {
                    Adjust.conversionValueUpdatedDelegate(cv);
                }
            }
        }
예제 #22
0
 public void getNativeMessage(string sAttributionData)
 {
     Adjust.runAttributionChangedDelegate(sAttributionData);
 }
예제 #23
0
 public static bool isEnabled()
 {
     return(!Adjust.IsEditor() && AdjustAndroid.IsEnabled());
 }