public static void EndSessionAndStopQueue() { GAThreading.IgnoreTimer(Instance.SuspendBlockId); if (Initialized) { GALogger.I("Ending session."); GAEvents.StopEventQueue(); if (IsEnabled() && SessionIsStarted()) { GAEvents.AddSessionEndEvent(); SessionStart = 0; } GAThreading.StopThread(); } }
public static void ResumeSessionAndStartQueue() #endif { if (!Initialized) { return; } GAThreading.IgnoreTimer(Instance.SuspendBlockId); GALogger.I("Resuming session."); if (!SessionIsStarted()) { #if WINDOWS_UWP || WINDOWS_WSA await StartNewSession(); #else StartNewSession(); #endif } GAThreading.StartThread(); }