This is also covered by the
Xamarin.Mobile component in part (the full functionality of Core Location is not replicated in the
Xamarin.Mobile component, due to there not being an equivalent method on the other platforms that the component supports). Thankfully, the component and Core Location work together seamlessly.
Xamarin.Mobile component allows you to listen to the position of the device and act when the position has been changed, using the
PositionChanged event. The following code demonstrates how to use it:
var iPhoneLocationManager = new Geolocator(); iPhoneLocationManager.DesiredAccuracy = 5; iPhoneLocationManager.StartListening(1, 10); iPhoneLocationManager.PositionChanged += (object sender,PositionEventArgs ...