async Task DisplaySatellite() { while (true) { closest = await SatelliteCalculations.FindClosestSatellite(userCoords.latitude, userCoords.longitude, userCoords.altitude); SatelliteName = closest.name; SatelliteDistance = closest.distance.ToString() + " km"; System.Threading.Thread.Sleep(100); } }
public MainPage() { InitializeComponent(); BindingContext = this; //GetMediaAsync(); closest = new Satellite("Oi, you need to click the button", 69); if (SatelliteCalculations.UpdateTLEData()) { IsFindVisible = true; } UserLatitude = userCoords.latitude; UserLongitude = userCoords.longitude; UserAltitude = userCoords.altitude; }