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"); }
public override void OnLocationResult(LocationResult result) { LastKnownLocation = result.LastLocation; _owner.OnLocationUpdated(result.LastLocation); }