Пример #1
0
        public void OnConnected(Bundle connectionHint)
        {
            LocationServices.FusedLocationApi.RequestLocationUpdates(_client, _request, this, Looper.MainLooper);

            var location = LocationServices.FusedLocationApi.GetLastLocation(_client);

            if (location != null)
            {
                _owner.OnLocationUpdated(location);
            }

            MvxPluginLog.Instance.Trace("Plugin.Location.Fused - OnConnected");
        }
Пример #2
0
 public override void OnLocationResult(LocationResult result)
 {
     LastKnownLocation = result.LastLocation;
     _owner.OnLocationUpdated(result.LastLocation);
 }