public SendPulseTimingEvent ( RaygunPulseEventType eventType, string name, long milliseconds ) : void | ||
eventType | RaygunPulseEventType | The type of event that occurred. |
name | string | The name of the event resource such as the view name or URL of a network call. |
milliseconds | long | The duration of the event in milliseconds. |
Результат | void |
private static void OnDidBecomeActive(NSNotification notification) { //Console.WriteLine("SESSION START"); _raygunClient.SendPulseSessionEvent(RaygunPulseSessionEventType.SessionStart); if (_lastViewName != null) { _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, _lastViewName, 0); } }
private static void OnDidBecomeActive(NSNotification notification) { _raygunClient.EnsurePulseSessionStarted(); if (_lastViewName != null) { _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, _lastViewName, 0); } }
public void OnActivityResumed(Activity activity) { if (_currentActivity == null) { _raygunClient.EnsurePulseSessionStarted(); } string activityName = GetActivityName(activity); long duration = 0; if (activity == _currentActivity) { _timer.Stop(); duration = _timer.ElapsedMilliseconds; } _currentActivity = activity; _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, activityName, duration); }
public void OnActivityResumed(Activity activity) { if (_currentActivity == null) { _raygunClient.SendPulseSessionEvent(RaygunPulseSessionEventType.SessionStart); } string activityName = GetActivityName(activity); long duration = 0; if (activity == _currentActivity) { _timer.Stop(); duration = _timer.ElapsedMilliseconds; } _currentActivity = activity; _raygunClient.SendPulseTimingEvent(RaygunPulseEventType.ViewLoaded, activityName, duration); //Console.WriteLine("ACTIVITY RESUMED " + activity.Title + " DURATION: " + duration); }