public void stopTracker() { storage.Dispose(); storage = null; tracker.Stop(); tracker = null; }
/// <summary> /// Halts the Tracker /// </summary> public static void Shutdown() { // Note: This will also stop the ClientSession and Emitter objects for you! Instance.Stop(); // Note: Dispose of Storage to remove lock on database file! if (_storage != null) { _storage.Dispose(); _storage = null; } if (_clientSession != null) { _clientSession = null; } SnowplowTrackerPlatformExtension.Current.StopLocationUpdates(); // Reset session counters SessionMadeCount = 0; SessionSuccessCount = 0; SessionFailureCount = 0; }