public static 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("InneractiveAd: Error: " + ex.ToString());
     }
 }
Beispiel #2
0
        // 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);
            }
        }