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(); }
void Awake() { SALog.Debug("sensorsdataapi awake."); if (saInstance == null) { DontDestroyOnLoad(gameObject); saInstance = this; } else { Destroy(gameObject); return; } analyticsWrapper = new SensorsAnalyticsWrapper(serverUrl, isEnableLog, autoTrackType, networkType); }
private void _flush() { SALog.Debug("Editor Log: calling flush."); }
private void _init() { SALog.Debug("Editor Log: calling init."); }
private void _clearTrackTimer() { SALog.Debug("Editor Log: calling clearTrackTimer."); }
private void _trackTimerEnd(string eventName, Dictionary <string, object> properties) { SALog.Debug("Editor Log: calling trackTimerEnd: eventName=" + eventName + ", properties=" + SAUtils.ToDebugString(properties)); }
private void _profileSetOnce(Dictionary <string, object> properties) { SALog.Debug("Editor Log: calling profileSetOnce: properties=" + SAUtils.ToDebugString(properties)); }
private void _login(string loginId) { SALog.Debug("Editor Log: calling login: loginId=" + loginId + "."); }
private void _setAndroidMaxCacheSize(long maxCacheSize) { SALog.Debug("Editor Log: calling SetAndroidMaxCacheSize: maxCacheSize=" + maxCacheSize); }
private void _removeTimer(string eventName) { SALog.Debug("Editor Log: calling RemoveTimer: eventName=" + eventName); }
//二期内容 private void _trackInstallation(Dictionary <string, object> properties = null, bool disableCallback = false) { SALog.Debug("Editor Log: calling TrackInstallation: properties=" + SAUtils.ToDebugString(properties) + ", " + disableCallback); }
private void _handleSchemeUrl(string url) { SALog.Debug("editor handle scheme: " + url); }
private void _clearSuperProperties() { SALog.Debug("Editor Log: calling clearSuperProperties."); }
private Dictionary <string, object> _getSuperProperties() { SALog.Debug("Editor Log: calling getSuperProperties."); return(new Dictionary <string, object>()); }
private void _unregisterSuperProperty(string superPropertyName) { SALog.Debug("Editor Log: calling unregisterSuperProperty: superPropertyName=" + superPropertyName); }
private void _identify(string distinctId) { SALog.Debug("Editor Log: calling identity: distinctId=" + distinctId + "."); }
private void _resetAnonymousId() { SALog.Debug("Editor Log: calling resetAnonymousId."); }
private void _setiOSMaxCacheSize(long maxCount) { SALog.Debug("Editor Log: calling SetiOSMaxCacheSize: maxCacheSize=" + maxCount); }
private void _logout() { SALog.Debug("Editor Log: calling logout."); }
private void _deleteAll() { SALog.Debug("Editor Log: calling DeleteAll"); }
private string _trackTimerStart(string eventName) { SALog.Debug("Editor Log: calling trackTimerStart: eventName=" + eventName); return(""); }
private void _setFlushBulkSize(int flushBulkSize) { SALog.Debug("Editor Log: calling SetFlushBulkSize: flushBulkSize=" + flushBulkSize); }
private void _trackTimerResume(string eventName) { SALog.Debug("Editor Log: calling trackTimerResume: eventName=" + eventName); }
private void _setFlushInterval(int flushInteval) { SALog.Debug("Editor Log: calling SetFlushInterval: flushInteval=" + flushInteval); }
private void _registerSuperProperties(Dictionary <string, object> properties) { SALog.Debug("Editor Log: calling registerSuperProperties: properties=" + SAUtils.ToDebugString(properties)); }
private void _setFlushNetworkPolicy(int types) { SALog.Debug("Editor Log: calling SetFlushNetworkPolicy: types=" + types); }