Пример #1
0
 public override void OnLocationResult(LocationResult location)
 {
     if (location != null)
     {
         var updatedLocation = XamarinLocationFactory.CreateXamarinLocation(location.LastLocation);
         _updateDelegate.Invoke(updatedLocation);
     }
     else
     {
         Log.Debug(LoggerTag, "Received empty location update from Google Play provider!");
     }
 }
        public void OnLocationChanged(Android.Locations.Location location)
        {
            var updatedLocation = XamarinLocationFactory.CreateXamarinLocation(location);

            _locationUpdateDelegate.Invoke(updatedLocation);
        }