Пример #1
0
 private async void OnMap(object sender, EventArgs args)
 {
     try
     {
         locationDialog = new LocationDialog(this);
         await PopupNavigation.Instance.PushAsync(locationDialog, true);
     }
     catch (Exception ex)
     {
     }
 }
Пример #2
0
        public async void OnEnableLocation()
        {
            new GeolocationManager(this).TurnOnLocation();

            //Subscribe to geolocation again
            if (locationDialog == null)
            {
                locationDialog = new LocationDialog(this);
            }

            await PopupNavigation.Instance.PushAsync(locationDialog, true);
        }