Beispiel #1
0
        public void OnActivityCreated(Activity activity, Bundle savedInstanceState)
        {
            if (_currentActivity == null)
            {
                _raygunClient.EnsurePulseSessionStarted();
            }

            if (activity != _currentActivity)
            {
                _currentActivity = activity;
                _timer.Restart();
            }
        }
Beispiel #2
0
        private static void OnDidBecomeActive(NSNotification notification)
        {
            _raygunClient.EnsurePulseSessionStarted();

            if (_lastViewName != null)
            {
                _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, _lastViewName, 0);
            }
        }
Beispiel #3
0
        internal static void Attach(RaygunClient raygunClient, Activity mainActivity)
        {
            if (_pulse == null && raygunClient != null && mainActivity != null && mainActivity.Application != null)
            {
                _raygunClient = raygunClient;
                _mainActivity = mainActivity;
                _pulse        = new Pulse();
                _mainActivity.Application.RegisterActivityLifecycleCallbacks(_pulse);

                _raygunClient.EnsurePulseSessionStarted();
                _currentActivity = _mainActivity;
                _timer.Start();
            }
        }