示例#1
0
 public SensorsAnalyticsWrapper(string serverUrl, bool enableLog, int autoTrackType, int networkType)
 {
     this.serverUrl     = serverUrl;
     this.enableLog     = enableLog;
     this.autoTrackType = 0;
     this.networkType   = networkType;
     SALog.IsLogEnalbe(enableLog);
     SALog.Debug("Unity Config=======init serverUrl:" + serverUrl + ", enableLog:" + enableLog
                 + ", networkType:" + networkType);
     _init();
 }
示例#2
0
 void Awake()
 {
     SALog.Debug("sensorsdataapi awake.");
     if (saInstance == null)
     {
         DontDestroyOnLoad(gameObject);
         saInstance = this;
     }
     else
     {
         Destroy(gameObject);
         return;
     }
     analyticsWrapper = new SensorsAnalyticsWrapper(serverUrl, isEnableLog, autoTrackType, networkType);
 }
示例#3
0
 private void _flush()
 {
     SALog.Debug("Editor Log: calling flush.");
 }
示例#4
0
 private void _init()
 {
     SALog.Debug("Editor Log: calling init.");
 }
示例#5
0
 private void _clearTrackTimer()
 {
     SALog.Debug("Editor Log: calling clearTrackTimer.");
 }
示例#6
0
 private void _trackTimerEnd(string eventName, Dictionary <string, object> properties)
 {
     SALog.Debug("Editor Log: calling trackTimerEnd: eventName=" + eventName + ", properties=" + SAUtils.ToDebugString(properties));
 }
示例#7
0
 private void _profileSetOnce(Dictionary <string, object> properties)
 {
     SALog.Debug("Editor Log: calling profileSetOnce: properties=" + SAUtils.ToDebugString(properties));
 }
示例#8
0
 private void _login(string loginId)
 {
     SALog.Debug("Editor Log: calling login: loginId=" + loginId + ".");
 }
示例#9
0
 private void _setAndroidMaxCacheSize(long maxCacheSize)
 {
     SALog.Debug("Editor Log: calling SetAndroidMaxCacheSize: maxCacheSize=" + maxCacheSize);
 }
示例#10
0
 private void _removeTimer(string eventName)
 {
     SALog.Debug("Editor Log: calling RemoveTimer: eventName=" + eventName);
 }
示例#11
0
 //二期内容
 private void _trackInstallation(Dictionary <string, object> properties = null, bool disableCallback = false)
 {
     SALog.Debug("Editor Log: calling TrackInstallation: properties=" + SAUtils.ToDebugString(properties) + ", " + disableCallback);
 }
示例#12
0
 private void _handleSchemeUrl(string url)
 {
     SALog.Debug("editor handle scheme: " + url);
 }
示例#13
0
 private void _clearSuperProperties()
 {
     SALog.Debug("Editor Log: calling clearSuperProperties.");
 }
示例#14
0
 private Dictionary <string, object> _getSuperProperties()
 {
     SALog.Debug("Editor Log: calling getSuperProperties.");
     return(new Dictionary <string, object>());
 }
示例#15
0
 private void _unregisterSuperProperty(string superPropertyName)
 {
     SALog.Debug("Editor Log: calling unregisterSuperProperty: superPropertyName=" + superPropertyName);
 }
示例#16
0
 private void _identify(string distinctId)
 {
     SALog.Debug("Editor Log: calling identity: distinctId=" + distinctId + ".");
 }
示例#17
0
 private void _resetAnonymousId()
 {
     SALog.Debug("Editor Log: calling resetAnonymousId.");
 }
示例#18
0
 private void _setiOSMaxCacheSize(long maxCount)
 {
     SALog.Debug("Editor Log: calling SetiOSMaxCacheSize: maxCacheSize=" + maxCount);
 }
示例#19
0
 private void _logout()
 {
     SALog.Debug("Editor Log: calling logout.");
 }
示例#20
0
 private void _deleteAll()
 {
     SALog.Debug("Editor Log: calling DeleteAll");
 }
示例#21
0
 private string _trackTimerStart(string eventName)
 {
     SALog.Debug("Editor Log: calling trackTimerStart: eventName=" + eventName);
     return("");
 }
示例#22
0
 private void _setFlushBulkSize(int flushBulkSize)
 {
     SALog.Debug("Editor Log: calling SetFlushBulkSize: flushBulkSize=" + flushBulkSize);
 }
示例#23
0
 private void _trackTimerResume(string eventName)
 {
     SALog.Debug("Editor Log: calling trackTimerResume: eventName=" + eventName);
 }
示例#24
0
 private void _setFlushInterval(int flushInteval)
 {
     SALog.Debug("Editor Log: calling SetFlushInterval: flushInteval=" + flushInteval);
 }
示例#25
0
 private void _registerSuperProperties(Dictionary <string, object> properties)
 {
     SALog.Debug("Editor Log: calling registerSuperProperties: properties=" + SAUtils.ToDebugString(properties));
 }
示例#26
0
 private void _setFlushNetworkPolicy(int types)
 {
     SALog.Debug("Editor Log: calling SetFlushNetworkPolicy: types=" + types);
 }