/// <summary> /// Stops the location updater service if it is running. /// </summary> public override void StopLocationUpdates() { if (_locationListener != null) { _locationListener.StopLocationUpdates(); _locationListener.Dispose(); _locationListener = null; } }
/// <summary> /// Attempts to build the GeoLocation Context. /// </summary> /// <returns>The geo-location context or null</returns> public override GeoLocationContext GetGeoLocationContext() { if (_locationListener == null) { _locationListener = new LocationListener(); _locationListener.StartLocationUpdates(); } return(_locationListener.GetGeoLocationContext()); }