Exemplo n.º 1
0
 private void _locationManager_MonitoringFailed(object sender, CLRegionErrorEventArgs e)
 {
     this.PositionError(sender, new PositionErrorEventArgs(GeolocationError.PositionUnavailable));
 }
 void HandleMonitoringFailed(object sender, CLRegionErrorEventArgs e)
 {
     OnDebugInfo(String.Format("HandleMonitoringFailed {0}",e.Error));
 }
Exemplo n.º 3
0
 private void _locationManager_MonitoringFailed(object sender, CLRegionErrorEventArgs e)
 {
     this.PositionError(sender, new PositionErrorEventArgs(GeolocationError.PositionUnavailable));
 }
 /// <summary>
 /// Converts the <see cref="CLRegionErrorEventArgs"/> to <see cref="RegionErrorEvent"/>.
 /// </summary>
 /// <param name="args">The arguments.</param>
 /// <returns>The notification.</returns>
 public static RegionErrorEvent ToNotification(this CLRegionErrorEventArgs args) =>
 new RegionErrorEvent(/*args.Error*/ new Exception(), ToGeoRegion(args.Region));