void iaLocation_Done(object sender, IaLocationEventArgs e) { try { // Add location, if received if (e != null && e.location != null) optionalParams.Add(InneractiveAd.IaOptionalParams.Key_Gps_Coordinates, e.location); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine("Error: " + ex.ToString()); } }
// Raise the Done event private void NotifyDone(GeoPositionStatusChangedEventArgs e) { if (Done != null) { IaLocationEventArgs locationArgs = null; if (e.Status == GeoPositionStatus.Ready && locationStr != null && locationStr.Length > 0) { locationArgs = new IaLocationEventArgs(locationStr); } Done(this, locationArgs); } }
// Raise the Done event private void NotifyDone(GeoPositionStatusChangedEventArgs e) { if (Done != null) { IaLocationEventArgs locationArgs = null; if (e.Status == GeoPositionStatus.Ready && locationStr != null && locationStr.Length > 0) { locationArgs = new IaLocationEventArgs(locationStr); } Done(this, locationArgs); } }