void OnLoadCommandExecuted() { var monitoredRegions = CrossGeofencing.Current.MonitoredRegions; GeofencePlaces.Clear(); if (monitoredRegions != null && monitoredRegions.Any()) { foreach (var monitoredRegion in monitoredRegions) { GeofencePlaces.Add(new GeofencePlace { ID = monitoredRegion.Identifier, Latitude = monitoredRegion.Center.Latitude, Longitude = monitoredRegion.Center.Longitude, Radius = monitoredRegion.Radius.TotalMeters }); } } // ios local notifications MessagingCenter.Send(string.Empty, "RequestNotificationPermission", ""); }
private void GeofencePlaces_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { ShowListView = GeofencePlaces.Any(); }