コード例 #1
0
 public void start(AdjustConfig adjustConfig)
 {
     if (this.adjust != null)
     {
         global::Debug.Log("adjust: Error, SDK already started.");
         return;
     }
     if (adjustConfig == null)
     {
         global::Debug.Log("adjust: Missing config to start.");
         return;
     }
     this.adjust = new AdjustAndroid();
     if (this.adjust == null)
     {
         global::Debug.Log("adjust: SDK can only be used in Android, iOS, Windows Phone 8 or Windows Store apps.");
         return;
     }
     this.eventSuccessDelegate       = adjustConfig.getEventSuccessDelegate();
     this.eventFailureDelegate       = adjustConfig.getEventFailureDelegate();
     this.sessionSuccessDelegate     = adjustConfig.getSessionSuccessDelegate();
     this.sessionFailureDelegate     = adjustConfig.getSessionFailureDelegate();
     this.deferredDeeplinkDelegate   = adjustConfig.getDeferredDeeplinkDelegate();
     this.attributionChangedDelegate = adjustConfig.getAttributionChangedDelegate();
     this.adjust.start(adjustConfig);
 }