Exemplo n.º 1
0
 void ConfigureTelemetry()
 {
     _telemetryLibrary = TelemetryFactory.GetTelemetryInstance();
     _telemetryLibrary.Initialize(_configuration.AccessToken);
     _telemetryLibrary.SetLocationCollectionState(GetTelemetryCollectionState());
     _telemetryLibrary.SendTurnstile();
 }
Exemplo n.º 2
0
 public void SendTurnstileEvent()
 {
     try
     {
         _telemetryLibrary = TelemetryFactory.GetTelemetryInstance();
         _telemetryLibrary.Initialize(accessToken);
         //_telemetryLibrary.SetLocationCollectionState(GetTelemetryCollectionState());
         _telemetryLibrary.SendTurnstile();
     }
     catch (Exception ex)
     {
         Debug.LogErrorFormat("Error initializing telemetry: {0}", ex);
     }
 }
Exemplo n.º 3
0
        void ConfigureTelemetry()
        {
#if UNITY_EDITOR
            _telemetryLibrary = TelemetryEditor.Instance;
#elif UNITY_IOS
            _telemetryLibrary = TelemetryIos.Instance;
#elif UNITY_ANDROID
            _telemetryLibrary = TelemetryAndroid.Instance;
#else
            _telemetryLibrary = TelemetryFallback.Instance;
#endif


            _telemetryLibrary.Initialize(_configuration.AccessToken);
            _telemetryLibrary.SetLocationCollectionState(GetTelemetryCollectionState());
            _telemetryLibrary.SendTurnstile();
        }
Exemplo n.º 4
0
        void ConfigureTelemetry()
        {
            // TODO: this will need to be settable at runtime as well?
            _isTelemetryEnabled = GetTelemetryCollectionState();

#if UNITY_EDITOR
            _telemetryLibrary = TelemetryDummy.Instance;
#elif UNITY_IOS
            _telemetryLibrary = TelemetryIos.Instance;
#elif UNITY_ANDROID
            _telemetryLibrary = TelemetryAndroid.Instance;
#else
            _telemetryLibrary = TelemetryDummy.Instance;
#endif


            _telemetryLibrary.Initialize(_accessToken);
            _telemetryLibrary.SendTurnstile();
        }
Exemplo n.º 5
0
 void ConfigureTelemetry()
 {
     // TODO: enable after token validation has been made async
     //if (
     //	null == _configuration
     //	|| string.IsNullOrEmpty(_configuration.AccessToken)
     //	|| !_tokenValid
     //)
     //{
     //	Debug.LogError(_tokenNotSetErrorMessage);
     //	return;
     //}
     try
     {
         _telemetryLibrary = TelemetryFactory.GetTelemetryInstance();
         _telemetryLibrary.Initialize(_configuration.AccessToken);
         _telemetryLibrary.SetLocationCollectionState(GetTelemetryCollectionState());
         _telemetryLibrary.SendTurnstile();
     }
     catch (Exception ex)
     {
         Debug.LogErrorFormat("Error initializing telemetry: {0}", ex);
     }
 }