-
Notifications
You must be signed in to change notification settings - Fork 497
add new property Location.AltitudeReferenceSystem #1197
Conversation
* and a new enum that represents its type * in order to deal with platform-specific reference systems * see issue xamarin#1177
* and the new enum AltitudeReferenceSystem
* casting from Windows.Devices.Geolocation.AltitudeReferenceSystem to Xamarin.Essentials.AltitudeReferenceSystem
Instead of a hard case I would maybe to a little method that does a switch expression over it. Besides that it looks good. |
* in order to make sure that the cast from Windows.Devices.Geolocation.AltitudeReferenceSystem is valid
Well, in the current state that is certainly not necessary. What you worry about is probably that |
I implemented that in c4c4e90. What do you think about it, @jamesmontemagno? |
Did a little modification on what I was talking about. Should be good now. |
Agree, looks good. Thank you! |
Ping! @jamesmontemagno, can this be merged? |
Description of Change
In order to deal with platform differences of Location.Altitude, this PR adds a new property Location.AltitudeReferenceSystem and a corresponding enum, which is a copy of Windows.Devices.Geolocation.AltitudeReferenceSystem.
Bugs Fixed
API Changes
Added:
enum AltitudeReferenceSystem
AltitudeReferenceSystem Location.AltitudeReferenceSystem { get; set; }
Changed:
Behavioral Changes
Describe any non-bug related behavioral changes that may change how users app behaves when upgrading to this version of the codebase.
PR Checklist